From 04ce27b43a7f5179e273dfc6138082fa6790ba43 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sun, 7 Sep 2025 17:52:15 +0200 Subject: [PATCH 1/4] Allow custom annotation to deployment --- ci/helm-chart/templates/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/helm-chart/templates/deployment.yaml b/ci/helm-chart/templates/deployment.yaml index b0bde8621840..d9ff7e97f0c3 100644 --- a/ci/helm-chart/templates/deployment.yaml +++ b/ci/helm-chart/templates/deployment.yaml @@ -7,6 +7,9 @@ metadata: helm.sh/chart: {{ include "code-server.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} + {{- if .Values.Annotations }} + annotations: {{- toYaml .Values.Annotations | nindent 8 }} + {{- end }} spec: replicas: {{ .Values.replicaCount | default 1 }} strategy: From b61ec9ab64768a82af800075c19fb40bbd16e183 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sun, 7 Sep 2025 17:54:37 +0200 Subject: [PATCH 2/4] Upgrade values.yaml --- ci/helm-chart/values.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/helm-chart/values.yaml b/ci/helm-chart/values.yaml index 3428a2fbd52a..b6cbdaa162bf 100644 --- a/ci/helm-chart/values.yaml +++ b/ci/helm-chart/values.yaml @@ -31,6 +31,9 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: "" +# Specifies annotations for deployment +annotations: {} + podAnnotations: {} podSecurityContext: {} From aedd2fb08e7e160b12d636b0358a77bd9b6816e1 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sun, 7 Sep 2025 17:55:01 +0200 Subject: [PATCH 3/4] Update deployment.yaml --- ci/helm-chart/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/helm-chart/templates/deployment.yaml b/ci/helm-chart/templates/deployment.yaml index d9ff7e97f0c3..4ddd614827a2 100644 --- a/ci/helm-chart/templates/deployment.yaml +++ b/ci/helm-chart/templates/deployment.yaml @@ -7,8 +7,8 @@ metadata: helm.sh/chart: {{ include "code-server.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} - {{- if .Values.Annotations }} - annotations: {{- toYaml .Values.Annotations | nindent 8 }} + {{- if .Values.annotations }} + annotations: {{- toYaml .Values.annotations | nindent 8 }} {{- end }} spec: replicas: {{ .Values.replicaCount | default 1 }} From 6f4e4a446ca7a8daa6563000388691823055f799 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sun, 7 Sep 2025 17:55:58 +0200 Subject: [PATCH 4/4] Update deployment.yaml --- ci/helm-chart/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/helm-chart/templates/deployment.yaml b/ci/helm-chart/templates/deployment.yaml index 4ddd614827a2..8f6fd89a5800 100644 --- a/ci/helm-chart/templates/deployment.yaml +++ b/ci/helm-chart/templates/deployment.yaml @@ -8,7 +8,7 @@ metadata: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- if .Values.annotations }} - annotations: {{- toYaml .Values.annotations | nindent 8 }} + annotations: {{- toYaml .Values.annotations | nindent 4 }} {{- end }} spec: replicas: {{ .Values.replicaCount | default 1 }}