From 6a2b1863ac915ec59d846adc7212e342b534cd09 Mon Sep 17 00:00:00 2001 From: Marcial White Date: Mon, 27 Sep 2021 16:47:48 -0600 Subject: [PATCH] support annotations on secret objects Signed-off-by: Marcial White --- charts/argocd-notifications/Chart.yaml | 3 ++- charts/argocd-notifications/templates/secret.yaml | 6 ++++++ charts/argocd-notifications/values.yaml | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/charts/argocd-notifications/Chart.yaml b/charts/argocd-notifications/Chart.yaml index fe9b6f45..c05cdae6 100644 --- a/charts/argocd-notifications/Chart.yaml +++ b/charts/argocd-notifications/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.1.1 description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD. name: argocd-notifications type: application -version: 1.5.0 +version: 1.5.1 home: https://github.com/argoproj/argo-helm icon: https://argocd-notifications.readthedocs.io/en/stable/assets/logo.png keywords: @@ -16,3 +16,4 @@ maintainers: annotations: artifacthub.io/changes: | - "[Added]: Configuration for Pod labels" + - "[Added]: Support annotations on secret objects" diff --git a/charts/argocd-notifications/templates/secret.yaml b/charts/argocd-notifications/templates/secret.yaml index e912eef7..ea1569c7 100644 --- a/charts/argocd-notifications/templates/secret.yaml +++ b/charts/argocd-notifications/templates/secret.yaml @@ -5,6 +5,12 @@ metadata: name: argocd-notifications-secret labels: {{- include "argocd-notifications.labels" . | nindent 4 }} + {{- if .Values.secret.annotations }} + annotations: + {{- range $key, $value := .Values.secret.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} type: Opaque stringData: {{- with .Values.secret.items }} diff --git a/charts/argocd-notifications/values.yaml b/charts/argocd-notifications/values.yaml index 6eeb97a0..554bedc1 100644 --- a/charts/argocd-notifications/values.yaml +++ b/charts/argocd-notifications/values.yaml @@ -28,6 +28,9 @@ secret: # Whether helm chart creates controller secret create: true + # key:value pairs to be added to the secret + annotations: {} + items: # Generic key:value pairs to be inserted into the secret # Can be used for templates, notification services etc. Some examples given below.