feat(argo-workflows): allow extraObjects to contain string template (#1995)

[argo-workflows] allow extraObjects to contain string template

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Cyril Jouve 2023-05-11 08:39:17 +02:00 committed by GitHub
parent 8402303bf8
commit 5873a1bc33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,8 @@
{{ range .Values.extraObjects }}
---
{{ tpl (toYaml .) $ }}
{{- if typeIs "string" . }}
{{- tpl . $ }}
{{- else }}
{{- tpl (toYaml .) $ }}
{{- end }}
{{ end }}