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:
Neil Hanlon 2023-04-06 21:16:57 -04:00 committed by GitHub
parent 656f7b5a4f
commit c6f6c2c47d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}