23 lines
551 B
YAML
23 lines
551 B
YAML
{{- if and (not .Values.slack.existingSecret) (.Values.slack.alert) }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
|
|
metadata:
|
|
name: {{ include "semaphoreui.fullname" . }}-slack
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "semaphoreui.labels" . | nindent 4 }}
|
|
{{- if .Values.labels }}
|
|
{{- toYaml .Values.labels | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.annotations }}
|
|
annotations:
|
|
{{- toYaml .Values.annotations | nindent 4 }}
|
|
{{- end }}
|
|
|
|
type: Opaque
|
|
data:
|
|
{{ .Values.slack.urlKey }}: {{ .Values.slack.url | b64enc }}
|
|
{{- end }}
|