mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-17 10:41:28 +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
|
||||
command: ["/bin/bash", "-c"]
|
||||
args:
|
||||
- |
|
||||
{{- range $cmd := $.Values.cron.preCommand }}
|
||||
- {{ $cmd }}
|
||||
{{ $cmd }}
|
||||
{{- end }}
|
||||
- tctl wf run --tq v2-rhworker --wt PollRHAdvisoriesWorkflow
|
||||
tctl wf run --tq v2-rhworker --wt PollRHAdvisoriesWorkflow
|
||||
{{- range $cmd := $.Values.cron.postCommand }}
|
||||
- {{ $cmd }}
|
||||
{{ $cmd }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user