diff --git a/helm/coder/templates/coder.yaml b/helm/coder/templates/coder.yaml index 65eaac00ac001..da809e877e42f 100644 --- a/helm/coder/templates/coder.yaml +++ b/helm/coder/templates/coder.yaml @@ -1,5 +1,7 @@ --- +{{- if not .Values.coder.serviceAccount.disableCreate }} {{ include "libcoder.serviceaccount" (list . "coder.serviceaccount") }} +{{- end }} --- {{ include "libcoder.deployment" (list . "coder.deployment") }} diff --git a/helm/coder/values.yaml b/helm/coder/values.yaml index 2d8a8bf4dbcd2..1e4ae4dddcd92 100644 --- a/helm/coder/values.yaml +++ b/helm/coder/values.yaml @@ -113,6 +113,8 @@ coder: annotations: {} # coder.serviceAccount.name -- The service account name name: coder + # coder.serviceAccount.name -- Whether to create the service account or use existing service account + disableCreate: true # coder.securityContext -- Fields related to the container's security # context (as opposed to the pod). Some fields are also present in the pod