mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-23 21:51:29 +00:00
fix: preCommand and postCommand injected improperly (#4)
these need to be strings we pass as a single object to bash -c, rather than multiple discrete commands.
This commit is contained in:
parent
656f7b5a4f
commit
c6f6c2c47d
@ -31,11 +31,12 @@ spec:
|
|||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["/bin/bash", "-c"]
|
command: ["/bin/bash", "-c"]
|
||||||
args:
|
args:
|
||||||
|
- |
|
||||||
{{- range $cmd := $.Values.cron.preCommand }}
|
{{- range $cmd := $.Values.cron.preCommand }}
|
||||||
- {{ $cmd }}
|
{{ $cmd }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- tctl wf run --tq v2-rhworker --wt PollRHAdvisoriesWorkflow
|
tctl wf run --tq v2-rhworker --wt PollRHAdvisoriesWorkflow
|
||||||
{{- range $cmd := $.Values.cron.postCommand }}
|
{{- range $cmd := $.Values.cron.postCommand }}
|
||||||
- {{ $cmd }}
|
{{ $cmd }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user