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:
Neil Hanlon 2023-04-06 21:14:13 -04:00
parent 656f7b5a4f
commit cd88418ef4
Signed by untrusted user: neil
GPG Key ID: 705BC21EC3C70F34
1 changed files with 4 additions and 3 deletions

View File

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