feat(argocd-notifications): support annotations on secret object (#952)

* support annotations on secret objects

Signed-off-by: Marcial White <marcial@kaskada.com>

* true-up artifacthub changes

Signed-off-by: Marcial White <marcial@kaskada.com>

Co-authored-by: Marko Bevc <marko@scalefactory.com>
This commit is contained in:
Marcial White 2021-09-29 09:15:21 -06:00 committed by GitHub
parent 73d1aedaec
commit e4f8dd5810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 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:
@ -15,4 +15,4 @@ maintainers:
- name: andyfeller
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.