From 1643caa31d1b9d9a328613059d2e95660213f4b8 Mon Sep 17 00:00:00 2001 From: shortsn Date: Tue, 17 Aug 2021 09:58:36 +0200 Subject: [PATCH] #871 rework using existing field Signed-off-by: shortsn --- charts/argocd-notifications/Chart.yaml | 2 +- charts/argocd-notifications/templates/configmap.yaml | 4 ---- charts/argocd-notifications/values.yaml | 8 ++++---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/charts/argocd-notifications/Chart.yaml b/charts/argocd-notifications/Chart.yaml index 8826bbb3..b13fac4e 100644 --- a/charts/argocd-notifications/Chart.yaml +++ b/charts/argocd-notifications/Chart.yaml @@ -15,4 +15,4 @@ maintainers: - name: andyfeller annotations: artifacthub.io/changes: | - - "[Added]: Support of 'defaultTriggers'" \ No newline at end of file + - "[Added]: Example for 'defaultTriggers'" \ No newline at end of file diff --git a/charts/argocd-notifications/templates/configmap.yaml b/charts/argocd-notifications/templates/configmap.yaml index 7d48d3ac..37f95b53 100644 --- a/charts/argocd-notifications/templates/configmap.yaml +++ b/charts/argocd-notifications/templates/configmap.yaml @@ -21,10 +21,6 @@ data: {{- with .Values.templates }} {{- toYaml . | nindent 2 }} {{- end }} - {{- with .Values.defaultTriggers }} - defaultTriggers: | - {{- toYaml . | nindent 4 }} - {{- end }} {{- with .Values.triggers }} {{- toYaml . | nindent 2 }} {{- end }} diff --git a/charts/argocd-notifications/values.yaml b/charts/argocd-notifications/values.yaml index 94c67c70..fe6857b7 100644 --- a/charts/argocd-notifications/values.yaml +++ b/charts/argocd-notifications/values.yaml @@ -312,10 +312,6 @@ 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/ @@ -350,6 +346,10 @@ triggers: # send: # - app-sync-succeeded # when: app.status.operationState.phase in ['Succeeded'] + # + # For more information: https://argocd-notifications.readthedocs.io/en/stable/triggers/#default-triggers + # defaultTriggers: | + # - on-sync-status-unknown bots: # For more information: https://argocd-notifications.readthedocs.io/en/stable/bots/overview/