From 5e6a4c60954491069b885eac6336f6e16e8d1b37 Mon Sep 17 00:00:00 2001 From: Cyril Jouve Date: Tue, 2 May 2023 19:40:35 +0200 Subject: [PATCH] [argo-event] allow extraObjects to contain string template Signed-off-by: Cyril Jouve --- charts/argo-rollouts/Chart.yaml | 6 +++++- charts/argo-rollouts/templates/extra-manifests.yaml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/argo-rollouts/Chart.yaml b/charts/argo-rollouts/Chart.yaml index bb95a986..3372cde3 100644 --- a/charts/argo-rollouts/Chart.yaml +++ b/charts/argo-rollouts/Chart.yaml @@ -2,7 +2,11 @@ apiVersion: v2 appVersion: v1.4.1 description: A Helm chart for Argo Rollouts name: argo-rollouts +<<<<<<< HEAD version: 2.26.1 +======= +version: 2.27.0 +>>>>>>> 9389c7b ([argo-event] allow extraObjects to contain string template) home: https://github.com/argoproj/argo-helm icon: https://argoproj.github.io/argo-rollouts/assets/logo.png keywords: @@ -16,4 +20,4 @@ maintainers: annotations: artifacthub.io/changes: | - kind: added - description: Missing permissions to leases under coordination api group + description: Allow extraObjects to contain string templates diff --git a/charts/argo-rollouts/templates/extra-manifests.yaml b/charts/argo-rollouts/templates/extra-manifests.yaml index a9bb3b6b..f17b1a93 100644 --- a/charts/argo-rollouts/templates/extra-manifests.yaml +++ b/charts/argo-rollouts/templates/extra-manifests.yaml @@ -1,4 +1,8 @@ {{ range .Values.extraObjects }} --- -{{ tpl (toYaml .) $ }} +{{- if typeIs "string" . }} + {{- tpl . $ }} +{{- else }} + {{- tpl (toYaml .) $ }} +{{- end }} {{ end }}