-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 I have created a release *beep* *boop* --- ## [0.83.3](0.83.2...0.83.3) (2023-09-19) ### Features * CLI service inspect command ([#1323](#1323)) ([ec018b9](ec018b9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: kurtosisbot <[email protected]> Co-authored-by: Gyanendra Mishra <[email protected]>
- Loading branch information
1 parent
efbaf09
commit bdbfadd
Showing
105 changed files
with
8,642 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!! | ||
// This is necessary so that Kurt Core consumers (e.g. modules) will know if they're compatible with the currently-running | ||
// API container | ||
export const KURTOSIS_VERSION: string = "0.83.2" | ||
export const KURTOSIS_VERSION: string = "0.83.3" | ||
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: Best Practices | ||
sidebar_label: Best Practices | ||
slug: /best-practices | ||
--- | ||
|
||
Passing package arguments to the CLI | ||
------------------------------- | ||
Passing [package parameters][package-parameterization] via the CLI can get hairy due to the interaction between Bash and JSON quotes. The following are tips to make your life easier: | ||
|
||
1. **When you have a small number of arguments:** surround the arguments with single quotes so you don't have to escape double quotes in your JSON. E.g.: | ||
```bash | ||
kurtosis run github.com/user/repo '{"some_param":5,"some_other_param":"My value"}' | ||
``` | ||
1. **When you have a large number of arguments:** put them in a `.json` file and use [Bash command substitution](https://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html) _inside double quotes_ to slot them into the `kurtosis run` command. E.g.: | ||
```bash | ||
kurtosis run github.com/user/repo "$(cat my-params.json)" | ||
``` | ||
The double quotes around the `$(cat my-params.json)` are important so any spaces inside `my-params.json` don't fool Bash into thinking you're passing in two separate arguments. | ||
|
||
Choosing the right wait | ||
----------------------- | ||
Kurtosis has three different types of waits. Described here are the three, with tips on when to use each: | ||
|
||
1. Automatic waiting on port availability when a service starts (enabled by default; can be configured with [`PortSpec.wait`][port-spec-starlark-reference]) | ||
- Should be sufficient for most usecases | ||
- Requires little-to-no extra configuration | ||
- Will cause parallel `Plan.add_services` to fail, allowing for quick aborting | ||
1. Waiting on [`ReadyCondition`][ready-condition-starlark-reference]s (configured in [`ServiceConfig`][service-config-starlark-reference]) | ||
- Allows for more advanced checking (e.g. require a certain HTTP response body, ensure a CLI call returns success, etc.) | ||
- More complex to configure | ||
- Will cause parallel `Plan.add_services` to fail, allowing for quick aborting | ||
1. The [`Plan.wait`][plan-wait-starlark-reference] | ||
- Most useful for asserting the system has reached a desired state in tests (e.g. wait until data shows up after loading) | ||
- More complex to configure | ||
- Cannot be used to short-circuit `Plan.add_services` | ||
|
||
Choosing service names in Kurtosis | ||
---------------------------------- | ||
Kurtosis service names implements [RFC-1035](https://datatracker.ietf.org/doc/html/rfc1035), meaning the names of all services must be a valid [RFC-1035 Label Name](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#rfc-1035-label-names). Tactically this means a service name must: | ||
|
||
- contain at most 63 characters | ||
- contain only lowercase alphanumeric characters or '-' | ||
- start with an alphabetic character | ||
- end with an alphanumeric character | ||
|
||
Failure to adhere to the above standards will result in errors when running Kurtosis. | ||
|
||
|
||
|
||
<!---------------------------------------- ONLY LINKS BELOW HERE!!! -----------------------------------> | ||
[package-parameterization]: ./concepts-reference/packages.md#parameterization | ||
|
||
[service-config-starlark-reference]: ./starlark-reference/service-config.md | ||
[port-spec-starlark-reference]: ./starlark-reference/port-spec.md | ||
[ready-condition-starlark-reference]: ./starlark-reference/ready-condition.md | ||
[plan-wait-starlark-reference]: ./starlark-reference/plan.md#wait |
Oops, something went wrong.