Skip to content

Commit

Permalink
fix: replace args mode (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin authored Feb 7, 2024
1 parent 2c37729 commit eb0de2b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
4 changes: 3 additions & 1 deletion api/testexecution/v1/testexecution_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,16 @@ type ExecutionRequest struct {
}

// ArgsModeType defines args mode type
// +kubebuilder:validation:Enum=append;override
// +kubebuilder:validation:Enum=append;override;replace
type ArgsModeType string

const (
// ArgsModeTypeAppend for append args mode
ArgsModeTypeAppend ArgsModeType = "append"
// ArgsModeTypeOverride for override args mode
ArgsModeTypeOverride ArgsModeType = "override"
// ArgsModeTypeReplace for replace args mode
ArgsModeTypeReplace ArgsModeType = "replace"
)

// Reference to env resource
Expand Down
4 changes: 3 additions & 1 deletion api/tests/v3/test_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,16 @@ type ExecutionRequest struct {
}

// ArgsModeType defines args mode type
// +kubebuilder:validation:Enum=append;override
// +kubebuilder:validation:Enum=append;override;replace
type ArgsModeType string

const (
// ArgsModeTypeAppend for append args mode
ArgsModeTypeAppend ArgsModeType = "append"
// ArgsModeTypeOverride for override args mode
ArgsModeTypeOverride ArgsModeType = "override"
// ArgsModeTypeReplace for replace args mode
ArgsModeTypeReplace ArgsModeType = "replace"
)

// Reference to env resource
Expand Down
4 changes: 3 additions & 1 deletion api/testsuiteexecution/v1/testsuiteexecution_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,16 @@ type TestSuiteStepDelayV2 struct {
}

// ArgsModeType defines args mode type
// +kubebuilder:validation:Enum=append;override
// +kubebuilder:validation:Enum=append;override;replace
type ArgsModeType string

const (
// ArgsModeTypeAppend for append args mode
ArgsModeTypeAppend ArgsModeType = "append"
// ArgsModeTypeOverride for override args mode
ArgsModeTypeOverride ArgsModeType = "override"
// ArgsModeTypeReplace for replace args mode
ArgsModeTypeReplace ArgsModeType = "replace"
)

// pod request body
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/tests.testkube.io_testexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ spec:
enum:
- append
- override
- replace
type: string
artifactRequest:
description: artifact request body with test artifacts
Expand Down Expand Up @@ -431,6 +432,7 @@ spec:
enum:
- append
- override
- replace
type: string
artifactRequest:
description: artifact request body with test artifacts
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/tests.testkube.io_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ spec:
enum:
- append
- override
- replace
type: string
artifactRequest:
description: artifact request body with test artifacts
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ spec:
enum:
- append
- override
- replace
type: string
artifactRequest:
description: artifact request body with test artifacts
Expand Down Expand Up @@ -861,6 +862,7 @@ spec:
enum:
- append
- override
- replace
type: string
artifactRequest:
description: artifact request body with test artifacts
Expand Down

0 comments on commit eb0de2b

Please sign in to comment.