mirror of
https://github.com/resf/distro-tools.git
synced 2024-12-18 09:18:38 +00:00
fix: preCommand and postCommand injected improperly
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
cd88418ef4
@ -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