2022-03-18 16:41:56 +00:00
|
|
|
{{- if and .Values.notifications.enabled .Values.notifications.secret.create }}
|
2022-03-16 21:01:30 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
2024-03-11 18:26:07 +00:00
|
|
|
name: {{ .Values.notifications.secret.name }}
|
2024-05-14 15:17:31 +00:00
|
|
|
namespace: {{ include "argo-cd.namespace" . }}
|
2022-03-16 21:01:30 +00:00
|
|
|
labels:
|
|
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
|
2023-07-27 21:44:15 +00:00
|
|
|
{{- with .Values.notifications.secret.labels }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2022-09-21 07:32:06 +00:00
|
|
|
{{- with .Values.notifications.secret.annotations }}
|
2022-03-16 21:01:30 +00:00
|
|
|
annotations:
|
2022-09-21 07:32:06 +00:00
|
|
|
{{- range $key, $value := . }}
|
2022-03-16 21:01:30 +00:00
|
|
|
{{ $key }}: {{ $value | quote }}
|
2022-09-21 07:32:06 +00:00
|
|
|
{{- end }}
|
2022-03-16 21:01:30 +00:00
|
|
|
{{- end }}
|
|
|
|
type: Opaque
|
|
|
|
stringData:
|
|
|
|
{{- with .Values.notifications.secret.items }}
|
2022-08-25 10:12:51 +00:00
|
|
|
{{- toYaml . | nindent 2 }}
|
2022-03-16 21:01:30 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|