From be2703d83fe8f278b4374807b4c48e91bd86da17 Mon Sep 17 00:00:00 2001 From: Ashwani Singh Date: Fri, 27 Dec 2024 18:17:23 +0530 Subject: [PATCH] Update the nginx template --- charts/nginx-ingress/templates/ingress.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/nginx-ingress/templates/ingress.yaml b/charts/nginx-ingress/templates/ingress.yaml index 63cfce0..2fb2bc3 100644 --- a/charts/nginx-ingress/templates/ingress.yaml +++ b/charts/nginx-ingress/templates/ingress.yaml @@ -49,12 +49,12 @@ spec: backend: {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} service: - name: {{ $fullName }} + name: {{ .backendService }} port: - number: {{ $svcPort }} + number: {{ .backendPort }} {{- else }} - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} + serviceName: {{ .backendService }} + servicePort: {{ .backendPort }} {{- end }} {{- end }} {{- end }}