Skip to content

Commit

Permalink
fix: small fixes (#5059)
Browse files Browse the repository at this point in the history
  • Loading branch information
vLia authored Feb 23, 2024
1 parent 442d5d4 commit 1d07d3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/crd/templates/testsuite.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
{{- if ne (len .ExecutionRequest.Args) 0 }}
args:
{{- range .ExecutionRequest.Args }}
- {{ . | quote }}
- "{{ . }}"
{{- end }}
{{- end }}
{{- if .ExecutionRequest.ArgsMode }}
Expand Down Expand Up @@ -214,7 +214,7 @@ spec:
{{- if ne (len .ExecutionRequest.Args) 0 }}
args:
{{- range .ExecutionRequest.Args }}
- {{ . | quote }}
- "{{ . }}"
{{- end }}
{{- end }}
{{- if .ExecutionRequest.ArgsMode }}
Expand Down Expand Up @@ -345,7 +345,7 @@ spec:
{{- if ne (len .ExecutionRequest.Args) 0 }}
args:
{{- range .ExecutionRequest.Args }}
- {{ . | quote }}
- "{{ . }}"
{{- end }}
{{- end }}
{{- if .ExecutionRequest.ArgsMode }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/tcl/testsuitestcl/steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import (

// MergeStepRequest inherits step request fields with execution request
func MergeStepRequest(stepRequest *testkube.TestSuiteStepExecutionRequest, executionRequest testkube.ExecutionRequest) testkube.ExecutionRequest {
if stepRequest == nil {
return executionRequest
}
if stepRequest.ExecutionLabels != nil {
executionRequest.ExecutionLabels = stepRequest.ExecutionLabels
}
Expand Down

0 comments on commit 1d07d3a

Please sign in to comment.