From 1c7ae3307c5b8f60ed5377d403d448a4759a95f8 Mon Sep 17 00:00:00 2001 From: MaxTNielsen <48516558+MaxTNielsen@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:21:17 +0200 Subject: [PATCH 1/5] Update coder.yaml Add a setting to disable service account creation --- helm/coder/templates/coder.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm/coder/templates/coder.yaml b/helm/coder/templates/coder.yaml index 65eaac00ac001..c2098cd26db09 100644 --- a/helm/coder/templates/coder.yaml +++ b/helm/coder/templates/coder.yaml @@ -1,5 +1,7 @@ --- +{{- if .Values.coder.serviceAccount.create }} {{ include "libcoder.serviceaccount" (list . "coder.serviceaccount") }} +{{- end }} --- {{ include "libcoder.deployment" (list . "coder.deployment") }} From bd0683326bff81a8c7bb472ab15183f1799819f3 Mon Sep 17 00:00:00 2001 From: MaxTNielsen <48516558+MaxTNielsen@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:29:39 +0200 Subject: [PATCH 2/5] Update values.yaml --- helm/coder/values.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm/coder/values.yaml b/helm/coder/values.yaml index 2d8a8bf4dbcd2..e389a3bb71767 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 + creat: true # coder.securityContext -- Fields related to the container's security # context (as opposed to the pod). Some fields are also present in the pod From 1b7e8db378b8ce2381f0a3830ab359eda68f4437 Mon Sep 17 00:00:00 2001 From: MaxTNielsen <48516558+MaxTNielsen@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:30:56 +0200 Subject: [PATCH 3/5] Update values.yaml --- helm/coder/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/coder/values.yaml b/helm/coder/values.yaml index e389a3bb71767..0e05e5de3eff7 100644 --- a/helm/coder/values.yaml +++ b/helm/coder/values.yaml @@ -114,7 +114,7 @@ coder: # coder.serviceAccount.name -- The service account name name: coder # coder.serviceAccount.name -- Whether to create the service account or use existing service account - creat: true + create: true # coder.securityContext -- Fields related to the container's security # context (as opposed to the pod). Some fields are also present in the pod From 742f6a39fa60d7ce0590f907c9754874f3886c1e Mon Sep 17 00:00:00 2001 From: MaxTNielsen <48516558+MaxTNielsen@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:16:07 +0200 Subject: [PATCH 4/5] Update coder.yaml Changed to disableCreate --- helm/coder/templates/coder.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/coder/templates/coder.yaml b/helm/coder/templates/coder.yaml index c2098cd26db09..da809e877e42f 100644 --- a/helm/coder/templates/coder.yaml +++ b/helm/coder/templates/coder.yaml @@ -1,5 +1,5 @@ --- -{{- if .Values.coder.serviceAccount.create }} +{{- if not .Values.coder.serviceAccount.disableCreate }} {{ include "libcoder.serviceaccount" (list . "coder.serviceaccount") }} {{- end }} From 121bb299d346618dd80a072fce8c74aaf80fdbc8 Mon Sep 17 00:00:00 2001 From: MaxTNielsen <48516558+MaxTNielsen@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:16:50 +0200 Subject: [PATCH 5/5] Update values.yaml Changed to disableCreate --- helm/coder/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/coder/values.yaml b/helm/coder/values.yaml index 0e05e5de3eff7..1e4ae4dddcd92 100644 --- a/helm/coder/values.yaml +++ b/helm/coder/values.yaml @@ -114,7 +114,7 @@ coder: # coder.serviceAccount.name -- The service account name name: coder # coder.serviceAccount.name -- Whether to create the service account or use existing service account - create: true + 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