Skip to content

Commit

Permalink
feat(TKC-1808): add run.shell option (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored Apr 3, 2024
1 parent fdc6429 commit a36d153
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/testworkflows/v1/step_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ type Step struct {

type StepRun struct {
ContainerConfig `json:",inline"`

// script to run in a default shell for the container
Shell *string `json:"shell,omitempty" expr:"template"`
}

type StepExecute struct {
Expand Down
5 changes: 5 additions & 0 deletions api/testworkflows/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions config/crd/bases/testworkflows.testkube.io_testworkflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,9 @@ spec:
type: string
type: object
type: object
shell:
description: script to run in a default shell for the container
type: string
volumeMounts:
description: volume mounts to append to the container
items:
Expand Down Expand Up @@ -4956,6 +4959,9 @@ spec:
type: string
type: object
type: object
shell:
description: script to run in a default shell for the container
type: string
volumeMounts:
description: volume mounts to append to the container
items:
Expand Down Expand Up @@ -6254,6 +6260,9 @@ spec:
type: string
type: object
type: object
shell:
description: script to run in a default shell for the container
type: string
volumeMounts:
description: volume mounts to append to the container
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,9 @@ spec:
type: string
type: object
type: object
shell:
description: script to run in a default shell for the container
type: string
volumeMounts:
description: volume mounts to append to the container
items:
Expand Down Expand Up @@ -4918,6 +4921,9 @@ spec:
type: string
type: object
type: object
shell:
description: script to run in a default shell for the container
type: string
volumeMounts:
description: volume mounts to append to the container
items:
Expand Down Expand Up @@ -6178,6 +6184,9 @@ spec:
type: string
type: object
type: object
shell:
description: script to run in a default shell for the container
type: string
volumeMounts:
description: volume mounts to append to the container
items:
Expand Down

0 comments on commit a36d153

Please sign in to comment.