From e4f8dd58109eefe53c41acd98ab50fd443643b22 Mon Sep 17 00:00:00 2001 From: Marcial White Date: Wed, 29 Sep 2021 09:15:21 -0600 Subject: [PATCH] feat(argocd-notifications): support annotations on secret object (#952) * support annotations on secret objects Signed-off-by: Marcial White * true-up artifacthub changes Signed-off-by: Marcial White Co-authored-by: Marko Bevc --- charts/argocd-notifications/Chart.yaml | 4 ++-- charts/argocd-notifications/templates/secret.yaml | 6 ++++++ charts/argocd-notifications/values.yaml | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/charts/argocd-notifications/Chart.yaml b/charts/argocd-notifications/Chart.yaml index fe9b6f45..171a5dfa 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: @@ -15,4 +15,4 @@ maintainers: - name: andyfeller 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.