argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-notifications-secret.yaml
Petr Drastil 8ee317128d
Cleanup config files to keep them DRY (#1470)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
2022-09-21 09:32:06 +02:00

19 lines
604 B
YAML

{{- if and .Values.notifications.enabled .Values.notifications.secret.create }}
apiVersion: v1
kind: Secret
metadata:
name: argocd-notifications-secret
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
{{- with .Values.notifications.secret.annotations }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
type: Opaque
stringData:
{{- with .Values.notifications.secret.items }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}