From 2fd551c60f9dfc27dbcd10285d53bb016721bd59 Mon Sep 17 00:00:00 2001 From: Sergey <41047934+1Psy@users.noreply.github.com> Date: Tue, 16 Feb 2021 07:23:19 +0300 Subject: [PATCH] feat(argocd-notifications): Add support of custom environment variables. (#580) Signed-off-by: 1Psy <41047934+1Psy@users.noreply.github.com> Co-authored-by: Alexander Matyushentsev --- charts/argocd-notifications/Chart.yaml | 2 +- charts/argocd-notifications/templates/deployment.yaml | 3 +++ charts/argocd-notifications/values.yaml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/argocd-notifications/Chart.yaml b/charts/argocd-notifications/Chart.yaml index a136f4b5..1aaf9e81 100644 --- a/charts/argocd-notifications/Chart.yaml +++ b/charts/argocd-notifications/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.0.1 description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD. name: argocd-notifications type: application -version: 1.0.13 +version: 1.0.14 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/deployment.yaml b/charts/argocd-notifications/templates/deployment.yaml index 10627fc3..bc6948d3 100644 --- a/charts/argocd-notifications/templates/deployment.yaml +++ b/charts/argocd-notifications/templates/deployment.yaml @@ -51,6 +51,9 @@ spec: name: metrics protocol: TCP {{- end }} + {{- with .Values.extraEnv }} + env: {{ toYaml . | nindent 12 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/argocd-notifications/values.yaml b/charts/argocd-notifications/values.yaml index e0ce9cdd..693b377f 100644 --- a/charts/argocd-notifications/values.yaml +++ b/charts/argocd-notifications/values.yaml @@ -54,6 +54,9 @@ metrics: # interval: 30s # scrapeTimeout: 10s +# Additional container environment variables +extraEnv: [] + notifiers: # For more information: https://argocd-notifications.readthedocs.io/en/stable/services/overview/