From ba72fa78a4e23dcaf22f45cb427f706bcfb2272e Mon Sep 17 00:00:00 2001 From: "Brian Suh (WhatsApp)" Date: Mon, 29 Jun 2026 15:58:47 -0700 Subject: [PATCH] Add loadBalancerClass support to service template Summary: Allow specifying a loadBalancerClass on the proxy Service via `.Values.service.loadBalancerClass`. When set, it is rendered onto the Service spec; when unset, the field is omitted so default behavior is preserved. Test Plan: helm template / lint the chart with and without service.loadBalancerClass set and confirm the field renders only when provided. --- charts/whatsapp-proxy-chart/Chart.yaml | 2 +- charts/whatsapp-proxy-chart/templates/service.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/whatsapp-proxy-chart/Chart.yaml b/charts/whatsapp-proxy-chart/Chart.yaml index 998f604..e34182e 100644 --- a/charts/whatsapp-proxy-chart/Chart.yaml +++ b/charts/whatsapp-proxy-chart/Chart.yaml @@ -17,7 +17,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.3.1 +version: 1.3.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/whatsapp-proxy-chart/templates/service.yaml b/charts/whatsapp-proxy-chart/templates/service.yaml index 6e4d69f..19bd15c 100644 --- a/charts/whatsapp-proxy-chart/templates/service.yaml +++ b/charts/whatsapp-proxy-chart/templates/service.yaml @@ -15,6 +15,9 @@ metadata: spec: type: {{ .Values.service.type }} + {{- with .Values.service.loadBalancerClass }} + loadBalancerClass: {{ . | quote }} + {{- end }} ports: {{- if .Values.service.http_proxy_port }} - port: {{ .Values.service.http_proxy_port }}