Files
devops-infra-helm-charts-gcp/helm-templates/elastalert2/templates/smtp-auth.yaml
T
2026-08-26 03:39:42 +05:30

17 lines
532 B
YAML

{{- if .Values.smtp_auth }}
apiVersion: v1
kind: Secret
metadata:
name: elastalert-smtp-auth
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
type: kubernetes.io/Opaque
stringData:
smtp_auth.yaml: |-
user: {{ .Values.smtp_auth.username }}
password: {{ .Values.smtp_auth.password }}
{{- end}}