From f3bfd0f6fa766fa479b6c1fbc668819de0089429 Mon Sep 17 00:00:00 2001 From: Eric Hayes Date: Fri, 19 Jun 2020 15:25:11 -0700 Subject: [PATCH] Added support for webhook triggers. (#380) --- charts/argocd-notifications/Chart.yaml | 2 +- .../templates/secret.yaml | 7 +++++++ charts/argocd-notifications/values.yaml | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/charts/argocd-notifications/Chart.yaml b/charts/argocd-notifications/Chart.yaml index 02d935de..cfbdfc6e 100644 --- a/charts/argocd-notifications/Chart.yaml +++ b/charts/argocd-notifications/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 0.7.0 description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD. name: argocd-notifications type: application -version: 1.0.2 +version: 1.0.3 home: https://github.com/argoproj/argo-helm icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png keywords: diff --git a/charts/argocd-notifications/templates/secret.yaml b/charts/argocd-notifications/templates/secret.yaml index 26612dfa..b631c78f 100644 --- a/charts/argocd-notifications/templates/secret.yaml +++ b/charts/argocd-notifications/templates/secret.yaml @@ -13,4 +13,11 @@ stringData: token: {{ .Values.secret.notifiers.slack.token }} username: {{ .Values.secret.notifiers.slack.username }} {{- end }} +{{- if .Values.secret.notifiers.webhooks }} + webhook: +{{- range $k, $v := .Values.secret.notifiers.webhooks }} + - name: {{ $k }} + {{- $v | toYaml | nindent 8 }} +{{- end }} +{{- end }} {{ end }} diff --git a/charts/argocd-notifications/values.yaml b/charts/argocd-notifications/values.yaml index 993b75bb..a05ee4c0 100644 --- a/charts/argocd-notifications/values.yaml +++ b/charts/argocd-notifications/values.yaml @@ -36,6 +36,25 @@ secret: # Optional override username username: + webhooks: {} + # For more information: https://argoproj-labs.github.io/argocd-notifications/services/webhook/ + # mywebhook: + # url: http://example.com + # headers: + # - name: headerName + # value: headerValue + # basicAuth: + # username: username + # password: mypassword + # mywebhook2: + # url: http://example.com + # headers: + # - name: headerName + # value: headerValue + # basicAuth: + # username: username + # password: mypassword + resources: {} # limits: # cpu: 100m