From d45192e39ea62a81c5e655e375f6ac2d30b5f4a9 Mon Sep 17 00:00:00 2001 From: Tim N <1721747+timnee@users.noreply.github.com> Date: Wed, 26 Apr 2023 13:27:40 -0400 Subject: [PATCH] Add serviceNameOverride (#3802) (cherry picked from commit 5517f66fec7005bb0c31534244bd0fd004bdbb4f) --- deployments/helm-chart/templates/controller-service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployments/helm-chart/templates/controller-service.yaml b/deployments/helm-chart/templates/controller-service.yaml index f3e4aecd3d..aa02dbf2e2 100644 --- a/deployments/helm-chart/templates/controller-service.yaml +++ b/deployments/helm-chart/templates/controller-service.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "nginx-ingress.controller.fullname" . }} + name: {{ default (include "nginx-ingress.controller.fullname" .) .Values.serviceNameOverride }} namespace: {{ .Release.Namespace }} labels: {{- include "nginx-ingress.labels" . | nindent 4 }}