Skip to content

Commit

Permalink
fix: always create service account and reference its name
Browse files Browse the repository at this point in the history
  • Loading branch information
luong-komorebi committed Sep 26, 2024
1 parent 06e89b7 commit eae99ae
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions charts/temporal/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ Create the name of the service account
Define the service account as needed
*/}}
{{- define "temporal.serviceAccount" -}}
{{- if .Values.serviceAccount.create -}}
serviceAccountName: {{ include "temporal.serviceAccountName" . }}
{{- end -}}
{{- end -}}

{{/*
Create a default fully qualified component name from the full app name and a component name.
Expand Down
2 changes: 0 additions & 2 deletions charts/temporal/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -11,4 +10,3 @@ metadata:
{{- with .Values.serviceAccount.extraAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end -}}
2 changes: 0 additions & 2 deletions charts/temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ debug: false
imagePullSecrets: {}
# Custom Service account management
serviceAccount:
# Whether to create service account or not
create: false
# Name of the service account, default: temporal.fullname
name:
# extraAnnotations would let users add additional annotations
Expand Down

0 comments on commit eae99ae

Please sign in to comment.