Skip to content

Commit dc6e2d8

Browse files
committed
feat: add args mode
1 parent ecf1391 commit dc6e2d8

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

apis/executor/v1/executor_types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ type ExecutorSpec struct {
4040

4141
// Image for kube-job
4242
Image string `json:"image,omitempty"`
43-
// container executor binary arguments
43+
// executor binary arguments
4444
Args []string `json:"args,omitempty"`
45-
// container executor default binary command
45+
// executor default binary command
4646
Command []string `json:"command,omitempty"`
4747
// container executor default image pull secrets
4848
ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"`

apis/tests/v3/test_types.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ type ExecutionRequest struct {
165165
TestSuiteSecretUUID string `json:"testSuiteSecretUUID,omitempty"`
166166
// additional executor binary arguments
167167
Args []string `json:"args,omitempty"`
168-
// container executor binary command
168+
// usage mode for arguments
169+
ArgsMode string `json:"argsMode,omitempty"`
170+
// executor binary command
169171
Command []string `json:"command,omitempty"`
170172
// container executor image
171173
Image string `json:"image,omitempty"`

config/crd/bases/executor.testkube.io_executors.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ spec:
3636
description: ExecutorSpec defines the desired state of Executor
3737
properties:
3838
args:
39-
description: container executor binary arguments
39+
description: executor binary arguments
4040
items:
4141
type: string
4242
type: array
4343
command:
44-
description: container executor default binary command
44+
description: executor default binary command
4545
items:
4646
type: string
4747
type: array

config/crd/bases/tests.testkube.io_tests.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ spec:
451451
items:
452452
type: string
453453
type: array
454+
argsMode:
455+
description: usage mode for arguments
456+
type: string
454457
artifactRequest:
455458
description: artifact request body for container executors with
456459
test artifacts
@@ -471,7 +474,7 @@ spec:
471474
- volumeMountPath
472475
type: object
473476
command:
474-
description: container executor binary command
477+
description: executor binary command
475478
items:
476479
type: string
477480
type: array

0 commit comments

Comments
 (0)