diff --git a/charts/argocd-notifications/templates/secret.yaml b/charts/argocd-notifications/templates/secret.yaml index 22e5c25a..a5fc5527 100644 --- a/charts/argocd-notifications/templates/secret.yaml +++ b/charts/argocd-notifications/templates/secret.yaml @@ -20,4 +20,11 @@ stringData: apiUrl: {{ .Values.secret.notifiers.grafana.apiUrl }} apiKey: {{ .Values.secret.notifiers.grafana.apiKey }} {{- 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 c33b817b..df936414 100644 --- a/charts/argocd-notifications/values.yaml +++ b/charts/argocd-notifications/values.yaml @@ -50,6 +50,25 @@ secret: # Grafana api key apiKey: + 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