From c17bf9fda2883ef206b7adf0ede00926fc64004f Mon Sep 17 00:00:00 2001 From: Tommy McNeely Date: Tue, 16 Jun 2026 16:35:59 -0600 Subject: [PATCH] feat: add service.annotations support Mirror the existing pattern used by serviceAccount.annotations and podAnnotations so users can attach metadata.annotations to the Service. Needed for GKE container-native LB (cloud.google.com/neg='{"ingress": true}') when fronting a ClusterIP Service with a GCE Ingress. --- Chart.yaml | 2 +- templates/service.yaml | 4 ++++ values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 4875139..ffc8324 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -14,4 +14,4 @@ name: openspeedtest sources: - https://github.com/openspeedtest/Helm-chart type: application -version: 0.1.2 +version: 0.1.3 diff --git a/templates/service.yaml b/templates/service.yaml index dded4fb..cbc15fb 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "openspeedtest.fullname" . }} labels: {{- include "openspeedtest.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} {{- if eq .Values.service.type "LoadBalancer" }} diff --git a/values.yaml b/values.yaml index b0c8379..a9e6b8e 100644 --- a/values.yaml +++ b/values.yaml @@ -41,6 +41,8 @@ service: type: LoadBalancer #loadBalancerIP: 10.10.10.10 port: 3000 + annotations: {} + # cloud.google.com/neg: '{"ingress": true}' ingress: enabled: false