argocd-helm/charts/argocd-notifications/templates/secret.yaml
Marcial White e4f8dd5810
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>
2021-09-29 16:15:21 +01:00

19 lines
466 B
YAML

{{ if .Values.secret.create }}
apiVersion: v1
kind: Secret
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 }}
{{ toYaml . | nindent 2 }}
{{- end }}
{{- end }}