feat(argo-rollouts): allow extraObjects to contain string template (#1996)

[argo-event] allow extraObjects to contain string template

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>
Co-authored-by: Jason Meridth <jmeridth@gmail.com>
Co-authored-by: Aikawa <yu.croco@gmail.com>
This commit is contained in:
Cyril Jouve 2023-05-06 13:31:50 +02:00 committed by GitHub
parent 430aaea83c
commit 80d5a6a65d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

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