{{ if .Values.secret.create }} apiVersion: v1 kind: Secret metadata: name: {{ include "argocd-notifications.secretName" . }} 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 }}