v1alpha1
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group.
Resource Types¶
Configuration¶
Configuration is the resource that contains the configuration used to run tests.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
apiVersion | string | chainsaw.kyverno.io/v1alpha1 | ||
kind | string | Configuration | ||
metadata | meta/v1.ObjectMeta | Standard object's metadata. | ||
spec | ConfigurationSpec | Configuration spec. |
StepTemplate¶
StepTemplate is the resource that contains a step definition.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
apiVersion | string | chainsaw.kyverno.io/v1alpha1 | ||
kind | string | StepTemplate | ||
metadata | meta/v1.ObjectMeta | Standard object's metadata. | ||
spec | StepTemplateSpec | Test step spec. |
Test¶
Test is the resource that contains a test definition.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
apiVersion | string | chainsaw.kyverno.io/v1alpha1 | ||
kind | string | Test | ||
metadata | meta/v1.ObjectMeta | Standard object's metadata. | ||
spec | TestSpec | Test spec. |
ActionBindings¶
Appears in:
ActionBindings contains bindings options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
bindings | []Binding | Bindings defines additional binding key/values. |
ActionCheck¶
Appears in:
ActionCheck contains check for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
check | policy/v1alpha1.AssertionTree | Check is an assertion tree to validate the operation outcome. |
ActionCheckRef¶
Appears in:
ActionCheckRef contains check reference options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
FileRef | FileRef | No description provided. | ||
resource | Projection | Check provides a check used in assertions. | ||
template | bool | Template determines whether resources should be considered for templating. |
ActionClusters¶
Appears in:
ActionClusters contains clusters options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
cluster | string | Cluster defines the target cluster (will be inherited if not specified). | ||
clusters | Clusters | Clusters holds a registry to clusters to support multi-cluster tests. |
ActionDryRun¶
Appears in:
ActionDryRun contains dry run options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
dryRun | bool | DryRun determines whether the file should be applied in dry run mode. |
ActionEnv¶
Appears in:
ActionEnv contains environment options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
env | []Binding | Env defines additional environment variables. | ||
skipLogOutput | bool | SkipLogOutput removes the output from the command. Useful for sensitive logs or to reduce noise. | ||
skipCommandOutput | bool | SkipCommandOutput removes the command from the output logs. |
ActionExpectations¶
Appears in:
ActionExpectations contains expectations for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
expect | []Expectation | Expect defines a list of matched checks to validate the operation outcome. |
ActionFormat¶
Appears in:
ActionFormat contains format for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
format | Format | Format determines the output format (json or yaml). |
ActionObject¶
Appears in:
ActionObject contains object selector options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ObjectType | ObjectType | No description provided. | ||
ActionObjectSelector | ActionObjectSelector | No description provided. |
ActionObjectSelector¶
Appears in:
ActionObjectSelector contains object selector options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ObjectName | ObjectName | No description provided. | ||
selector | Expression | Selector defines labels selector. |
ActionOutputs¶
Appears in:
ActionOutputs contains outputs options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
outputs | []Output | Outputs defines output bindings. |
ActionResourceRef¶
Appears in:
ActionResourceRef contains resource reference options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
FileRef | FileRef | No description provided. | ||
resource | meta/v1/unstructured.Unstructured | Resource provides a resource to be applied. | ||
template | bool | Template determines whether resources should be considered for templating. |
ActionTimeout¶
Appears in:
ActionTimeout contains timeout options for an action.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
timeout | meta/v1.Duration | Timeout for the operation. Overrides the global timeout set in the Configuration. |
Apply¶
Appears in:
Apply represents a set of configurations or resources that should be applied during testing.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionBindings | ActionBindings | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionDryRun | ActionDryRun | No description provided. | ||
ActionExpectations | ActionExpectations | No description provided. | ||
ActionOutputs | ActionOutputs | No description provided. | ||
ActionResourceRef | ActionResourceRef | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. |
Assert¶
Appears in:
Assert represents a test condition that is expected to hold true during the testing process.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionBindings | ActionBindings | No description provided. | ||
ActionCheckRef | ActionCheckRef | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. |
Binding¶
Appears in:
Binding represents a key/value set as a binding in an executing test.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
name | Expression | Name the name of the binding. | ||
compiler | policy/v1alpha1.Compiler | Compiler defines the default compiler to use when evaluating expressions. | ||
value | Projection | Value value of the binding. |
CatchFinally¶
Appears in:
CatchFinally defines actions to be executed in catch, finally and cleanup blocks.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
description | string | Description contains a description of the operation. | ||
compiler | policy/v1alpha1.Compiler | Compiler defines the default compiler to use when evaluating expressions. | ||
podLogs | PodLogs | PodLogs determines the pod logs collector to execute. | ||
events | Events | Events determines the events collector to execute. | ||
describe | Describe | Describe determines the resource describe collector to execute. | ||
wait | Wait | Wait determines the resource wait collector to execute. | ||
get | Get | Get determines the resource get collector to execute. | ||
delete | Delete | Delete represents a deletion operation. | ||
command | Command | Command defines a command to run. | ||
script | Script | Script defines a script to run. | ||
sleep | Sleep | Sleep defines zzzz. |
Clusters¶
(Alias of map[string]github.com/kyverno/chainsaw/pkg/apis/v1alpha1.Cluster
)
Appears in:
Clusters defines a cluster map.
Command¶
Appears in:
Command describes a command to run as a part of a test step.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionBindings | ActionBindings | No description provided. | ||
ActionCheck | ActionCheck | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionEnv | ActionEnv | No description provided. | ||
ActionOutputs | ActionOutputs | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. | ||
entrypoint | string | Entrypoint is the command entry point to run. | ||
args | []string | Args is the command arguments. | ||
workDir | string | WorkDir is the working directory for command. |
ConfigurationSpec¶
Appears in:
ConfigurationSpec contains the configuration used to run tests.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
timeouts | DefaultTimeouts | Global timeouts configuration. Applies to all tests/test steps if not overridden. | ||
skipDelete | bool | If set, do not delete the resources after running the tests (implies SkipClusterDelete). | ||
template | bool | Template determines whether resources should be considered for templating. | ||
compiler | policy/v1alpha1.Compiler | Compiler defines the default compiler to use when evaluating expressions. | ||
failFast | bool | FailFast determines whether the test should stop upon encountering the first failure. | ||
parallel | int | The maximum number of tests to run at once. | ||
deletionPropagationPolicy | meta/v1.DeletionPropagation | DeletionPropagationPolicy decides if a deletion will propagate to the dependents of the object, and how the garbage collector will handle the propagation. | ||
reportFormat | ReportFormatType | ReportFormat determines test report format (JSON | ||
reportPath | string | ReportPath defines the path. | ||
reportName | string | ReportName defines the name of report to create. It defaults to "chainsaw-report". | ||
namespace | string | Namespace defines the namespace to use for tests. If not specified, every test will execute in a random ephemeral namespace unless the namespace is overridden in a the test spec. | ||
namespaceTemplateCompiler | policy/v1alpha1.Compiler | NamespaceTemplateCompiler defines the default compiler to use when evaluating expressions. | ||
namespaceTemplate | Projection | NamespaceTemplate defines a template to create the test namespace. | ||
fullName | bool | FullName makes use of the full test case folder path instead of the folder name. | ||
excludeTestRegex | string | ExcludeTestRegex is used to exclude tests based on a regular expression. | ||
includeTestRegex | string | IncludeTestRegex is used to include tests based on a regular expression. | ||
repeatCount | int | RepeatCount indicates how many times the tests should be executed. | ||
testFile | string | TestFile is the name of the file containing the test to run. If no extension is provided, chainsaw will try with .yaml first and .yml if needed. | ||
forceTerminationGracePeriod | meta/v1.Duration | ForceTerminationGracePeriod forces the termination grace period on pods, statefulsets, daemonsets and deployments. | ||
delayBeforeCleanup | meta/v1.Duration | DelayBeforeCleanup adds a delay between the time a test ends and the time cleanup starts. | ||
clusters | Clusters | Clusters holds a registry to clusters to support multi-cluster tests. | ||
catch | []CatchFinally | Catch defines what the tests steps will execute when an error happens. This will be combined with catch handlers defined at the test and step levels. |
Create¶
Appears in:
Create represents a set of resources that should be created. If a resource already exists in the cluster it will fail.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionBindings | ActionBindings | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionDryRun | ActionDryRun | No description provided. | ||
ActionExpectations | ActionExpectations | No description provided. | ||
ActionOutputs | ActionOutputs | No description provided. | ||
ActionResourceRef | ActionResourceRef | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. |
DefaultTimeouts¶
Appears in:
DefaultTimeouts contains defautl timeouts per operation.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
apply | meta/v1.Duration | Apply defines the timeout for the apply operation | ||
assert | meta/v1.Duration | Assert defines the timeout for the assert operation | ||
cleanup | meta/v1.Duration | Cleanup defines the timeout for the cleanup operation | ||
delete | meta/v1.Duration | Delete defines the timeout for the delete operation | ||
error | meta/v1.Duration | Error defines the timeout for the error operation | ||
exec | meta/v1.Duration | Exec defines the timeout for exec operations |
Delete¶
Appears in:
Delete is a reference to an object that should be deleted
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionBindings | ActionBindings | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionExpectations | ActionExpectations | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. | ||
template | bool | Template determines whether resources should be considered for templating. | ||
file | Expression | File is the path to the referenced file. This can be a direct path to a file or an expression that matches multiple files, such as "manifest/*.yaml" for all YAML files within the "manifest" directory. | ||
ref | ObjectReference | Ref determines objects to be deleted. | ||
deletionPropagationPolicy | meta/v1.DeletionPropagation | DeletionPropagationPolicy decides if a deletion will propagate to the dependents of the object, and how the garbage collector will handle the propagation. Overrides the deletion propagation policy set in the Configuration, the Test and the TestStep. |
Describe¶
Appears in:
Describe defines how to describe resources.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionClusters | ActionClusters | No description provided. | ||
ActionObject | ActionObject | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. | ||
showEvents | bool | Show Events indicates whether to include related events. |
Error¶
Appears in:
Error represents an anticipated error condition that may arise during testing. Instead of treating such an error as a test failure, it acknowledges it as expected.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionBindings | ActionBindings | No description provided. | ||
ActionCheckRef | ActionCheckRef | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. |
Events¶
Appears in:
Events defines how to collect events.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionClusters | ActionClusters | No description provided. | ||
ActionFormat | ActionFormat | No description provided. | ||
ActionObjectSelector | ActionObjectSelector | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. |
Expectation¶
Appears in:
Expectation represents a check to be applied on the result of an operation with a match filter to determine if the verification should be considered.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
match | policy/v1alpha1.AssertionTree | Match defines the matching statement. | ||
check | policy/v1alpha1.AssertionTree | Check defines the verification statement. |
Expression¶
(Alias of string
)
Appears in:
- ActionObjectSelector
- Binding
- Delete
- FileRef
- ObjectName
- ObjectType
- PodLogs
- Proxy
- WaitForCondition
- WaitForJsonPath
Expression defines an expression to be used in string fields.
FileRef¶
Appears in:
FileRef represents a file reference.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
file | Expression | File is the path to the referenced file. This can be a direct path to a file or an expression that matches multiple files, such as "manifest/*.yaml" for all YAML files within the "manifest" directory. |
Format¶
(Alias of string
)
Appears in:
Format determines the output format (json or yaml).
Get¶
Appears in:
Get defines how to get resources.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionClusters | ActionClusters | No description provided. | ||
ActionFormat | ActionFormat | No description provided. | ||
ActionObject | ActionObject | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. |
ObjectName¶
Appears in:
ObjectName represents an object namespace and name.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
namespace | Expression | Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ | ||
name | Expression | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
ObjectReference¶
Appears in:
ObjectReference represents one or more objects with a specific apiVersion and kind. For a single object name and namespace are used to identify the object. For multiple objects use labels.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ObjectType | ObjectType | No description provided. | ||
ObjectName | ObjectName | No description provided. | ||
labels | map[string]string | Label selector to match objects to delete |
ObjectType¶
Appears in:
ObjectType represents a specific apiVersion and kind.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
apiVersion | Expression | API version of the referent. | ||
kind | Expression | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
Operation¶
Appears in:
Operation defines a single operation, only one action is permitted for a given operation.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
OperationBase | OperationBase | OperationBase defines common elements to all operations. | ||
apply | Apply | Apply represents resources that should be applied for this test step. This can include things like configuration settings or any other resources that need to be available during the test. | ||
assert | Assert | Assert represents an assertion to be made. It checks whether the conditions specified in the assertion hold true. | ||
command | Command | Command defines a command to run. | ||
create | Create | Create represents a creation operation. | ||
delete | Delete | Delete represents a deletion operation. | ||
describe | Describe | Describe determines the resource describe collector to execute. | ||
error | Error | Error represents the expected errors for this test step. If any of these errors occur, the test will consider them as expected; otherwise, they will be treated as test failures. | ||
events | Events | Events determines the events collector to execute. | ||
get | Get | Get determines the resource get collector to execute. | ||
patch | Patch | Patch represents a patch operation. | ||
podLogs | PodLogs | PodLogs determines the pod logs collector to execute. | ||
proxy | Proxy | Proxy runs a proxy request. | ||
script | Script | Script defines a script to run. | ||
sleep | Sleep | Sleep defines zzzz. | ||
update | Update | Update represents an update operation. | ||
wait | Wait | Wait determines the resource wait collector to execute. |
OperationBase¶
Appears in:
OperationBase defines common elements to all operations.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
description | string | Description contains a description of the operation. | ||
continueOnError | bool | ContinueOnError determines whether a test should continue or not in case the operation was not successful. Even if the test continues executing, it will still be reported as failed. | ||
compiler | policy/v1alpha1.Compiler | Compiler defines the default compiler to use when evaluating expressions. |
Output¶
Appears in:
Output represents an output binding with a match to determine if the binding must be considered or not.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
Binding | Binding | Binding determines the binding to create when the match succeeds. | ||
match | policy/v1alpha1.AssertionTree | Match defines the matching statement. |
Patch¶
Appears in:
Patch represents a set of resources that should be patched. If a resource doesn't exist yet in the cluster it will fail.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionBindings | ActionBindings | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionDryRun | ActionDryRun | No description provided. | ||
ActionExpectations | ActionExpectations | No description provided. | ||
ActionOutputs | ActionOutputs | No description provided. | ||
ActionResourceRef | ActionResourceRef | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. |
PodLogs¶
Appears in:
PodLogs defines how to collect pod logs.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionClusters | ActionClusters | No description provided. | ||
ActionObjectSelector | ActionObjectSelector | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. | ||
container | Expression | Container in pod to get logs from else --all-containers is used. | ||
tail | int | Tail is the number of last lines to collect from pods. If omitted or zero, then the default is 10 if you use a selector, or -1 (all) if you use a pod name. This matches default behavior of |
Projection¶
Appears in:
Projection can be any type.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
Proxy¶
Appears in:
Proxy defines how to get resources.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionClusters | ActionClusters | No description provided. | ||
ActionOutputs | ActionOutputs | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. | ||
ObjectName | ObjectName | No description provided. | ||
ObjectType | ObjectType | No description provided. | ||
port | Expression | TargetPort defines the target port to proxy the request. | ||
path | Expression | TargetPath defines the target path to proxy the request. |
ReportFormatType¶
(Alias of string
)
Appears in:
Scenario¶
Appears in:
Scenario defines per scenario bindings.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
bindings | []Binding | Bindings defines binding key/values. |
Script¶
Appears in:
Script describes a script to run as a part of a test step.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionBindings | ActionBindings | No description provided. | ||
ActionCheck | ActionCheck | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionEnv | ActionEnv | No description provided. | ||
ActionOutputs | ActionOutputs | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. | ||
content | string | Content defines a shell script (run with "sh -c ..."). | ||
workDir | string | WorkDir is the working directory for script. |
Sleep¶
Appears in:
Sleep represents a duration while nothing happens.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
duration | meta/v1.Duration | Duration is the delay used for sleeping. |
StepTemplateSpec¶
Appears in:
StepTemplateSpec defines the spec of a step template.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
bindings | []Binding | Bindings defines additional binding key/values. | ||
try | []Operation | Try defines what the step will try to execute. | ||
catch | []CatchFinally | Catch defines what the step will execute when an error happens. | ||
finally | []CatchFinally | Finally defines what the step will execute after the step is terminated. | ||
cleanup | []CatchFinally | Cleanup defines what will be executed after the test is terminated. |
TestSpec¶
Appears in:
TestSpec contains the test spec.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
description | string | Description contains a description of the test. | ||
failFast | bool | FailFast determines whether the test should stop upon encountering the first failure. | ||
timeouts | Timeouts | Timeouts for the test. Overrides the global timeouts set in the Configuration on a per operation basis. | ||
cluster | string | Cluster defines the target cluster (will be inherited if not specified). | ||
clusters | Clusters | Clusters holds a registry to clusters to support multi-cluster tests. | ||
skip | bool | Skip determines whether the test should skipped. | ||
concurrent | bool | Concurrent determines whether the test should run concurrently with other tests. | ||
skipDelete | bool | SkipDelete determines whether the resources created by the test should be deleted after the test is executed. | ||
template | bool | Template determines whether resources should be considered for templating. | ||
compiler | policy/v1alpha1.Compiler | Compiler defines the default compiler to use when evaluating expressions. | ||
namespace | string | Namespace determines whether the test should run in a random ephemeral namespace or not. | ||
namespaceTemplate | Projection | NamespaceTemplate defines a template to create the test namespace. | ||
namespaceTemplateCompiler | policy/v1alpha1.Compiler | NamespaceTemplateCompiler defines the default compiler to use when evaluating expressions. | ||
scenarios | []Scenario | Scenarios defines test scenarios. | ||
bindings | []Binding | Bindings defines additional binding key/values. | ||
steps | []TestStep | Steps defining the test. | ||
catch | []CatchFinally | Catch defines what the steps will execute when an error happens. This will be combined with catch handlers defined at the step level. | ||
forceTerminationGracePeriod | meta/v1.Duration | ForceTerminationGracePeriod forces the termination grace period on pods, statefulsets, daemonsets and deployments. | ||
delayBeforeCleanup | meta/v1.Duration | DelayBeforeCleanup adds a delay between the time a test ends and the time cleanup starts. | ||
deletionPropagationPolicy | meta/v1.DeletionPropagation | DeletionPropagationPolicy decides if a deletion will propagate to the dependents of the object, and how the garbage collector will handle the propagation. Overrides the deletion propagation policy set in the Configuration. |
TestStep¶
Appears in:
TestStep contains the test step definition used in a test spec.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
name | string | Name of the step. | ||
use | Use | Use defines a reference to a step template. | ||
TestStepSpec | TestStepSpec | TestStepSpec of the step. |
TestStepSpec¶
Appears in:
TestStepSpec defines the desired state and behavior for each test step.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
description | string | Description contains a description of the test step. | ||
timeouts | Timeouts | Timeouts for the test step. Overrides the global timeouts set in the Configuration and the timeouts eventually set in the Test. | ||
deletionPropagationPolicy | meta/v1.DeletionPropagation | DeletionPropagationPolicy decides if a deletion will propagate to the dependents of the object, and how the garbage collector will handle the propagation. Overrides the deletion propagation policy set in both the Configuration and the Test. | ||
cluster | string | Cluster defines the target cluster (will be inherited if not specified). | ||
clusters | Clusters | Clusters holds a registry to clusters to support multi-cluster tests. | ||
skipDelete | bool | SkipDelete determines whether the resources created by the step should be deleted after the test step is executed. | ||
template | bool | Template determines whether resources should be considered for templating. | ||
compiler | policy/v1alpha1.Compiler | Compiler defines the default compiler to use when evaluating expressions. | ||
bindings | []Binding | Bindings defines additional binding key/values. | ||
try | []Operation | Try defines what the step will try to execute. | ||
catch | []CatchFinally | Catch defines what the step will execute when an error happens. | ||
finally | []CatchFinally | Finally defines what the step will execute after the step is terminated. | ||
cleanup | []CatchFinally | Cleanup defines what will be executed after the test is terminated. |
Timeouts¶
Appears in:
Timeouts contains timeouts per operation.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
apply | meta/v1.Duration | Apply defines the timeout for the apply operation | ||
assert | meta/v1.Duration | Assert defines the timeout for the assert operation | ||
cleanup | meta/v1.Duration | Cleanup defines the timeout for the cleanup operation | ||
delete | meta/v1.Duration | Delete defines the timeout for the delete operation | ||
error | meta/v1.Duration | Error defines the timeout for the error operation | ||
exec | meta/v1.Duration | Exec defines the timeout for exec operations |
Update¶
Appears in:
Update represents a set of resources that should be updated. If a resource does not exist in the cluster it will fail.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionBindings | ActionBindings | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionDryRun | ActionDryRun | No description provided. | ||
ActionExpectations | ActionExpectations | No description provided. | ||
ActionOutputs | ActionOutputs | No description provided. | ||
ActionResourceRef | ActionResourceRef | No description provided. | ||
ActionTimeout | ActionTimeout | No description provided. |
Use¶
Appears in:
Use defines a reference to a step template.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
template | string | Template references a step template. | ||
with | With | With defines arguments passed to the step template. |
Wait¶
Appears in:
Wait specifies how to perform wait operations on resources.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
ActionTimeout | ActionTimeout | No description provided. | ||
ActionFormat | ActionFormat | No description provided. | ||
ActionClusters | ActionClusters | No description provided. | ||
ActionObject | ActionObject | No description provided. | ||
for | WaitFor | WaitFor specifies the condition to wait for. |
WaitFor¶
Appears in:
WaitFor specifies the condition to wait for.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
deletion | WaitForDeletion | Deletion specifies parameters for waiting on a resource's deletion. | ||
condition | WaitForCondition | Condition specifies the condition to wait for. | ||
jsonPath | WaitForJsonPath | JsonPath specifies the json path condition to wait for. |
WaitForCondition¶
Appears in:
WaitForCondition represents parameters for waiting on a specific condition of a resource.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
name | Expression | Name defines the specific condition to wait for, e.g., "Available", "Ready". | ||
value | Expression | Value defines the specific condition status to wait for, e.g., "True", "False". |
WaitForDeletion¶
Appears in:
WaitForDeletion represents parameters for waiting on a resource's deletion.
WaitForJsonPath¶
Appears in:
WaitForJsonPath represents parameters for waiting on a json path of a resource.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
path | Expression | Path defines the json path to wait for, e.g. '{.status.phase}'. | ||
value | Expression | Value defines the expected value to wait for, e.g., "Running". |
With¶
Appears in:
With defines arguments passed to step templates.
Field | Type | Required | Inline | Description |
---|---|---|---|---|
bindings | []Binding | Bindings defines additional binding key/values. |