From a104e08612d68258aa554c173ef3628814600a8a Mon Sep 17 00:00:00 2001 From: shortsn Date: Mon, 16 Aug 2021 19:42:00 +0200 Subject: [PATCH] extending chart by optional defaultTriggers Signed-off-by: shortsn --- charts/argocd-notifications/Chart.yaml | 3 ++- charts/argocd-notifications/templates/configmap.yaml | 6 ++++++ charts/argocd-notifications/values.yaml | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/charts/argocd-notifications/Chart.yaml b/charts/argocd-notifications/Chart.yaml index 81fc8e5c..0d0f681a 100644 --- a/charts/argocd-notifications/Chart.yaml +++ b/charts/argocd-notifications/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.1.1 description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD. name: argocd-notifications type: application -version: 1.4.1 +version: 1.5.0 home: https://github.com/argoproj/argo-helm icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png keywords: @@ -16,3 +16,4 @@ maintainers: annotations: artifacthub.io/changes: | - "[Added]: Initialize Changelog" + - "[Added]: Support of 'defaultTriggers'" \ No newline at end of file diff --git a/charts/argocd-notifications/templates/configmap.yaml b/charts/argocd-notifications/templates/configmap.yaml index 37f95b53..f8cb2083 100644 --- a/charts/argocd-notifications/templates/configmap.yaml +++ b/charts/argocd-notifications/templates/configmap.yaml @@ -21,6 +21,12 @@ data: {{- with .Values.templates }} {{- toYaml . | nindent 2 }} {{- end }} + {{- with .Values.defaultTriggers }} + defaultTriggers: | + {{- range . }} + - {{ . }} + {{- end }} + {{- end }} {{- with .Values.triggers }} {{- toYaml . | nindent 2 }} {{- end }} diff --git a/charts/argocd-notifications/values.yaml b/charts/argocd-notifications/values.yaml index ff5ca14d..94c67c70 100644 --- a/charts/argocd-notifications/values.yaml +++ b/charts/argocd-notifications/values.yaml @@ -312,6 +312,10 @@ templates: tolerations: [] +# For more information: https://argocd-notifications.readthedocs.io/en/stable/triggers/#default-triggers +# defaultTriggers: +# - on-sync-status-unknown + triggers: # For more information: https://argocd-notifications.readthedocs.io/en/stable/triggers/