summaryrefslogtreecommitdiff
path: root/astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-notifications-secret.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-notifications-secret.yaml')
-rw-r--r--astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-notifications-secret.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-notifications-secret.yaml b/astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-notifications-secret.yaml
new file mode 100644
index 0000000..f64a91f
--- /dev/null
+++ b/astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-notifications-secret.yaml
@@ -0,0 +1,23 @@
+{{- if and .Values.notifications.enabled .Values.notifications.secret.create }}
+apiVersion: v1
+kind: Secret
+metadata:
+ name: {{ .Values.notifications.secret.name }}
+ namespace: {{ include "argo-cd.namespace" . }}
+ labels:
+ {{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
+ {{- with .Values.notifications.secret.labels }}
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+ {{- 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 }}