From cd4adfcaf849b3690eb016b903284ae10347ccc1 Mon Sep 17 00:00:00 2001 From: Albert Dixon Date: Fri, 31 Jul 2020 14:57:19 -0700 Subject: [PATCH] feat: Argo Notifications - add extraArgs value (#416) * charts/argocd-notifications/values: add extraArgs * charts/argocd-notifications/templates/deployment: use extraArgs * charts/argocd-notifications/chart: bump chart ver * charts/argocd-notifications/chart: actually set ver --- charts/argocd-notifications/Chart.yaml | 2 +- charts/argocd-notifications/templates/deployment.yaml | 3 +++ charts/argocd-notifications/values.yaml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/argocd-notifications/Chart.yaml b/charts/argocd-notifications/Chart.yaml index 9954d4ca..dff9b0ed 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.8 +version: 1.0.9 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 d9f53a25..30f88629 100644 --- a/charts/argocd-notifications/templates/deployment.yaml +++ b/charts/argocd-notifications/templates/deployment.yaml @@ -33,6 +33,9 @@ spec: {{- if .Values.metrics.enabled }} - --metrics-port={{ .Values.metrics.port }} {{- end }} + {{- range .Values.extraArgs }} + - {{ . | squote }} + {{- end }} ports: {{- if .Values.metrics.enabled }} - containerPort: {{ .Values.metrics.port }} diff --git a/charts/argocd-notifications/values.yaml b/charts/argocd-notifications/values.yaml index 3b9e03b7..4882d2fc 100644 --- a/charts/argocd-notifications/values.yaml +++ b/charts/argocd-notifications/values.yaml @@ -89,6 +89,8 @@ secret: logLevel: info +extraArgs: [] + metrics: enabled: false port: 9001