Skip to content

Commit

Permalink
feat: add args mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Apr 19, 2023
1 parent ecf1391 commit dc6e2d8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apis/executor/v1/executor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ type ExecutorSpec struct {

// Image for kube-job
Image string `json:"image,omitempty"`
// container executor binary arguments
// executor binary arguments
Args []string `json:"args,omitempty"`
// container executor default binary command
// executor default binary command
Command []string `json:"command,omitempty"`
// container executor default image pull secrets
ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
Expand Down
4 changes: 3 additions & 1 deletion apis/tests/v3/test_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ type ExecutionRequest struct {
TestSuiteSecretUUID string `json:"testSuiteSecretUUID,omitempty"`
// additional executor binary arguments
Args []string `json:"args,omitempty"`
// container executor binary command
// usage mode for arguments
ArgsMode string `json:"argsMode,omitempty"`
// executor binary command
Command []string `json:"command,omitempty"`
// container executor image
Image string `json:"image,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/executor.testkube.io_executors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ spec:
description: ExecutorSpec defines the desired state of Executor
properties:
args:
description: container executor binary arguments
description: executor binary arguments
items:
type: string
type: array
command:
description: container executor default binary command
description: executor default binary command
items:
type: string
type: array
Expand Down
5 changes: 4 additions & 1 deletion config/crd/bases/tests.testkube.io_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ spec:
items:
type: string
type: array
argsMode:
description: usage mode for arguments
type: string
artifactRequest:
description: artifact request body for container executors with
test artifacts
Expand All @@ -471,7 +474,7 @@ spec:
- volumeMountPath
type: object
command:
description: container executor binary command
description: executor binary command
items:
type: string
type: array
Expand Down

0 comments on commit dc6e2d8

Please sign in to comment.