mirror of
https://github.com/resf/distro-tools.git
synced 2024-10-04 07:24:09 +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
|
||||
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