Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Aug 12, 2024
1 parent 4c57261 commit c44902f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/tcl/testworkflowstcl/testworkflowprocessor/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func ProcessExecute(_ testworkflowprocessor.InternalProcessor, layer testworkflo

container.
SetImage(constants.DefaultToolkitImage).
SetImagePullPolicy(corev1.PullIfNotPresent).
SetImagePullPolicy(corev1.PullNever).
SetCommand(constants.DefaultToolkitPath, "execute").
EnableToolkit(stage.Ref()).
AppendVolumeMounts(layer.AddEmptyDirVolume(nil, constants.DefaultTransferDirPath))
Expand Down Expand Up @@ -104,7 +104,7 @@ func ProcessParallel(_ testworkflowprocessor.InternalProcessor, layer testworkfl

stage.Container().
SetImage(constants.DefaultToolkitImage).
SetImagePullPolicy(corev1.PullIfNotPresent).
SetImagePullPolicy(corev1.PullNever).
SetCommand(constants.DefaultToolkitPath, "parallel").
EnableToolkit(stage.Ref()).
AppendVolumeMounts(layer.AddEmptyDirVolume(nil, constants.DefaultTransferDirPath))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func getInitImage() string {

func getToolkitImage() string {
img := os.Getenv("TESTKUBE_TW_TOOLKIT_IMAGE")
img = "testworkflow-toolkit"
if img == "" {
ver := version.Version
if ver == "" || ver == "dev" {
Expand Down
4 changes: 2 additions & 2 deletions pkg/testworkflows/testworkflowprocessor/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func ProcessContentGit(_ InternalProcessor, layer Intermediate, container stage.
selfContainer.
SetWorkingDir("/").
SetImage(constants.DefaultToolkitImage).
SetImagePullPolicy(corev1.PullIfNotPresent).
SetImagePullPolicy(corev1.PullNever).
SetCommand("/toolkit", "clone", step.Content.Git.Uri).
EnableToolkit(stage.Ref())

Expand Down Expand Up @@ -298,7 +298,7 @@ func ProcessArtifacts(_ InternalProcessor, layer Intermediate, container stage.C

selfContainer.
SetImage(constants.DefaultToolkitImage).
SetImagePullPolicy(corev1.PullIfNotPresent).
SetImagePullPolicy(corev1.PullNever).
SetCommand(constants.DefaultToolkitPath, "artifacts", "-m", constants.DefaultDataPath).
EnableToolkit(stage.Ref())

Expand Down
4 changes: 2 additions & 2 deletions pkg/testworkflows/testworkflowprocessor/presets/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ func NewOpenSource(inspector imageinspector.Inspector) testworkflowprocessor.Pro
Register(testworkflowprocessor.ProcessNestedSetupSteps).
Register(testworkflowprocessor.ProcessRunCommand).
Register(testworkflowprocessor.ProcessShellCommand).
Register(testworkflowprocessor.StubExecute).
Register(testworkflowprocessor.StubParallel).
Register(testworkflowprocessortcl.ProcessExecute).
Register(testworkflowprocessortcl.ProcessParallel).
Register(testworkflowprocessor.ProcessNestedSteps).
Register(testworkflowprocessor.ProcessArtifacts)
}
Expand Down

0 comments on commit c44902f

Please sign in to comment.