argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-notifications-secret.yaml
Petr Drastil 3930788628
chore(argo-cd): Move notification configs (#1419)
* Move notification configs to config dir

Signed-off-by: Petr Drastil <petr.drastil@gmail.com>

* Use expected names for notification configs

Signed-off-by: Petr Drastil <petr.drastil@gmail.com>

* Fix notification role

Signed-off-by: Petr Drastil <petr.drastil@gmail.com>

Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
2022-08-25 12:12:51 +02:00

19 lines
637 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 }}
{{- if .Values.notifications.secret.annotations }}
annotations:
{{- range $key, $value := .Values.notifications.secret.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
type: Opaque
stringData:
{{- with .Values.notifications.secret.items }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}