argocd-helm/charts/argo-cd/templates/argocd-notifications/bots/slack/serviceaccount.yaml
Marco Kilchhofer d542b1e426
fix(argo-cd): Fix server.config.url and slack service account (#1208)
* fix(argo-cd): Set 'server.config.url' to empty string

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* fix(argo-cd): Do not create slack service account

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
2022-04-02 20:44:48 +02:00

15 lines
795 B
YAML

{{- if and .Values.notifications.enabled .Values.notifications.bots.slack.enabled .Values.notifications.bots.slack.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: {{ .Values.notifications.bots.slack.serviceAccount.automountServiceAccountToken }}
metadata:
name: {{ template "argo-cd.notificationsBotsSlackServiceAccountName" . }}
{{- if .Values.notifications.bots.slack.serviceAccount.annotations }}
annotations:
{{- range $key, $value := .Values.notifications.bots.slack.serviceAccount.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.bots.slack.name "name" .Values.notifications.bots.slack.name) | nindent 4 }}
{{- end }}