From 965207889697c826055fe46dd5dd50a93c3cac40 Mon Sep 17 00:00:00 2001 From: sergeyshaykhullin Date: Fri, 19 Jun 2020 03:57:36 +0300 Subject: [PATCH] Add grafana support --- charts/argocd-notifications/templates/secret.yaml | 5 +++++ charts/argocd-notifications/values.yaml | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/charts/argocd-notifications/templates/secret.yaml b/charts/argocd-notifications/templates/secret.yaml index fd6a6a98..22e5c25a 100644 --- a/charts/argocd-notifications/templates/secret.yaml +++ b/charts/argocd-notifications/templates/secret.yaml @@ -15,4 +15,9 @@ stringData: icon: {{ .Values.secret.notifiers.slack.icon }} signingSecret: {{ .Values.secret.notifiers.slack.signingSecret }} {{- end }} +{{- if .Values.secret.notifiers.grafana.enabled }} + grafana: + apiUrl: {{ .Values.secret.notifiers.grafana.apiUrl }} + apiKey: {{ .Values.secret.notifiers.grafana.apiKey }} +{{- end }} {{ end }} diff --git a/charts/argocd-notifications/values.yaml b/charts/argocd-notifications/values.yaml index 23e3e3de..c9080a62 100644 --- a/charts/argocd-notifications/values.yaml +++ b/charts/argocd-notifications/values.yaml @@ -39,6 +39,13 @@ secret: icon: # Optional override signingSecret: https://argoproj-labs.github.io/argocd-notifications/recipients/slack-bot/ signingSecret: + + grafana: + enabled: false + # https://grafana.example.com/api + apiUrl: + # Grafana api key + apiKey: resources: {}