Skip to content

Commit cd92220

Browse files
authored
feat(helm): add setting to disable service account creation (coder#14817)
Add a setting to disable service account creation
1 parent b828412 commit cd92220

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

helm/coder/templates/coder.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2+
{{- if not .Values.coder.serviceAccount.disableCreate }}
23
{{ include "libcoder.serviceaccount" (list . "coder.serviceaccount") }}
4+
{{- end }}
35

46
---
57
{{ include "libcoder.deployment" (list . "coder.deployment") }}

helm/coder/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ coder:
113113
annotations: {}
114114
# coder.serviceAccount.name -- The service account name
115115
name: coder
116+
# coder.serviceAccount.name -- Whether to create the service account or use existing service account
117+
disableCreate: true
116118

117119
# coder.securityContext -- Fields related to the container's security
118120
# context (as opposed to the pod). Some fields are also present in the pod

0 commit comments

Comments
 (0)