From d6693085af6749705711f6c0b0ebccc2962ca3c6 Mon Sep 17 00:00:00 2001 From: comandermuffif Date: Tue, 27 Oct 2026 11:41:43 -0400 Subject: [PATCH 1/2] feat[helm]: support load balancer service --- ci/helm-chart/templates/service.yaml | 1 + ci/helm-chart/values.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/ci/helm-chart/templates/service.yaml b/ci/helm-chart/templates/service.yaml index 1b58af0b1acd..771f95775c52 100644 --- a/ci/helm-chart/templates/service.yaml +++ b/ci/helm-chart/templates/service.yaml @@ -6,6 +6,7 @@ metadata: {{- include "code-server.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} + loadBalancerClass: {{ .Values.service.loadBalancerClass }} ports: - port: {{ .Values.service.port }} targetPort: http diff --git a/ci/helm-chart/values.yaml b/ci/helm-chart/values.yaml index 57f36b87ff58..de3ed654b43b 100644 --- a/ci/helm-chart/values.yaml +++ b/ci/helm-chart/values.yaml @@ -48,6 +48,7 @@ priorityClassName: "" service: type: ClusterIP port: 8080 + loadBalancerClass: null ingress: enabled: false From 31a6be686bfd104b12ebce89fbf0dd87c64c6da8 Mon Sep 17 00:00:00 2001 From: comandermuffif Date: Tue, 27 Oct 2026 11:45:17 -0400 Subject: [PATCH 2/2] add annotations --- ci/helm-chart/templates/service.yaml | 4 ++++ ci/helm-chart/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/ci/helm-chart/templates/service.yaml b/ci/helm-chart/templates/service.yaml index 771f95775c52..27c4cc49e299 100644 --- a/ci/helm-chart/templates/service.yaml +++ b/ci/helm-chart/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "code-server.fullname" . }} labels: {{- include "code-server.labels" . | nindent 4 }} + annotations: + {{- with .Values.service.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} loadBalancerClass: {{ .Values.service.loadBalancerClass }} diff --git a/ci/helm-chart/values.yaml b/ci/helm-chart/values.yaml index de3ed654b43b..15308e2807d5 100644 --- a/ci/helm-chart/values.yaml +++ b/ci/helm-chart/values.yaml @@ -49,6 +49,7 @@ service: type: ClusterIP port: 8080 loadBalancerClass: null + annotations: {} ingress: enabled: false