[argo-event] allow extraObjects to contain string template

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>
This commit is contained in:
Cyril Jouve 2023-05-02 19:40:35 +02:00
parent decfc73a3f
commit 5e6a4c6095
No known key found for this signature in database
GPG key ID: 226875D8A3B15FA6
2 changed files with 10 additions and 2 deletions

View file

@ -2,7 +2,11 @@ apiVersion: v2
appVersion: v1.4.1 appVersion: v1.4.1
description: A Helm chart for Argo Rollouts description: A Helm chart for Argo Rollouts
name: argo-rollouts name: argo-rollouts
<<<<<<< HEAD
version: 2.26.1 version: 2.26.1
=======
version: 2.27.0
>>>>>>> 9389c7b ([argo-event] allow extraObjects to contain string template)
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
keywords: keywords:
@ -16,4 +20,4 @@ maintainers:
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: added - kind: added
description: Missing permissions to leases under coordination api group description: Allow extraObjects to contain string templates

View file

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