support annotations on secret objects

Signed-off-by: Marcial White <marcial@kaskada.com>
This commit is contained in:
Marcial White 2021-09-27 16:47:48 -06:00
parent 0fe9ec1add
commit 6a2b1863ac
3 changed files with 11 additions and 1 deletions

View file

@ -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"

View file

@ -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 }}

View file

@ -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.