forked from argoproj/argo-helm
argocd-notifications: fix serviceaccount name (#389)
* fix: ArgoCD Notifications - Bot service account * chore: update argocd-notifications version to 1.0.6main
parent
5ca92acda0
commit
7d5d20f615
|
@ -3,7 +3,7 @@ appVersion: 0.7.0
|
|||
description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD.
|
||||
name: argocd-notifications
|
||||
type: application
|
||||
version: 1.0.5
|
||||
version: 1.0.6
|
||||
home: https://github.com/argoproj/argo-helm
|
||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
||||
keywords:
|
||||
|
|
|
@ -87,7 +87,7 @@ Create the name of the bot service account to use
|
|||
*/}}
|
||||
{{- define "argocd-notifications.bots.slack.serviceAccountName" -}}
|
||||
{{- if .Values.bots.slack.serviceAccount.create -}}
|
||||
{{ default (include "argocd-notifications.fullname" .) .Values.bots.slack.serviceAccount.name }}
|
||||
{{ default (printf "%s-bot" (include "argocd-notifications.fullname" .)) .Values.bots.slack.serviceAccount.name }}
|
||||
{{- else -}}
|
||||
{{ default "default" .Values.bots.slack.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
|
|
|
@ -20,7 +20,7 @@ spec:
|
|||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "argocd-notifications.serviceAccountName" . }}-bot
|
||||
serviceAccountName: {{ include "argocd-notifications.bots.slack.serviceAccountName" . }}
|
||||
containers:
|
||||
- name: {{ include "argocd-notifications.name" . }}-bot
|
||||
image: "{{ .Values.bots.slack.image.repository }}:{{ .Values.bots.slack.image.tag }}"
|
||||
|
|
|
@ -15,4 +15,13 @@ rules:
|
|||
- watch
|
||||
- update
|
||||
- patch
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- secrets
|
||||
- configmaps
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
{{ end }}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{ if and .Values.bots.slack.enabled .Values.secret.create }}
|
||||
{{- if .Values.bots.slack.serviceAccount.create }}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{{- if .Values.serviceAccount.create }}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "argocd-notifications.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "argocd-notifications.labels" . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in New Issue