Skip to content

Commit 4ad591c

Browse files
committed
remove service account creation from helm
1 parent af53272 commit 4ad591c

File tree

4 files changed

+0
-37
lines changed

4 files changed

+0
-37
lines changed

helm/templates/_helpers.tpl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,3 @@ Selector labels
4949
app.kubernetes.io/name: {{ include "fastcs.name" . }}
5050
app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}
52-
53-
{{/*
54-
Create the name of the service account to use
55-
*/}}
56-
{{- define "fastcs.serviceAccountName" -}}
57-
{{- if .Values.serviceAccount.create }}
58-
{{- default (include "fastcs.fullname" .) .Values.serviceAccount.name }}
59-
{{- else }}
60-
{{- default "default" .Values.serviceAccount.name }}
61-
{{- end }}
62-
{{- end }}

helm/templates/deployment.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ spec:
4747
# unless the Commit Hash is supplied (by ArgoCD or helm command line)
4848
rollme: {{ .Values.global.commitHash | default (randAlphaNum 5) | quote }}
4949
spec:
50-
serviceAccountName: {{ include "fastcs.serviceAccountName" . }}
5150
{{- with .Values.podSecurityContext }}
5251
securityContext:
5352
{{- toYaml . | nindent 8 }}

helm/templates/serviceaccount.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

helm/values.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ baseIp: 10.96.0.0/12
3333
# supply a fixed cluster IP for the service to override allocateIpFromName
3434
clusterIP:
3535

36-
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
37-
serviceAccount:
38-
# Specifies whether a service account should be created
39-
create: true
40-
# Automatically mount a ServiceAccount's API credentials?
41-
automount: true
42-
# Annotations to add to the service account
43-
annotations: {}
44-
# The name of the service account to use.
45-
# If not set and create is true, a name is generated using the fullname template
46-
name: ""
47-
4836
# This is for setting Kubernetes Annotations to a Pod.
4937
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
5038
podAnnotations: {}

0 commit comments

Comments
 (0)