From cd92220ab836264f7b9b907dc9bb98c19e365cfd Mon Sep 17 00:00:00 2001 From: MaxTNielsen <48516558+MaxTNielsen@users.noreply.github.com> Date: Wed, 23 Oct 2024 14:25:57 +0200 Subject: [PATCH] feat(helm): add setting to disable service account creation (#14817) Add a setting to disable service account creation --- helm/coder/templates/coder.yaml | 2 ++ helm/coder/values.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/helm/coder/templates/coder.yaml b/helm/coder/templates/coder.yaml index 65eaac00ac..da809e877e 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 2d8a8bf4db..1e4ae4dddc 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