From ae36a617ab45dc84b2377edf7c3e96046f5aa85f Mon Sep 17 00:00:00 2001 From: Guillaume Perrin Date: Tue, 4 Jun 2019 20:04:06 +0200 Subject: [PATCH] [stable/sonatype-nexus] Fix ingress when proxy service is renamed (#14437) When renaming the proxy service, ingress should map the new name instead of the default one. Signed-off-by: Guillaume Perrin --- stable/sonatype-nexus/Chart.yaml | 2 +- stable/sonatype-nexus/templates/ingress.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/sonatype-nexus/Chart.yaml b/stable/sonatype-nexus/Chart.yaml index f1843f9e22..1be6446ca0 100644 --- a/stable/sonatype-nexus/Chart.yaml +++ b/stable/sonatype-nexus/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: sonatype-nexus -version: 1.18.3 +version: 1.18.4 appVersion: 3.15.2-01 description: Sonatype Nexus is an open source repository manager keywords: diff --git a/stable/sonatype-nexus/templates/ingress.yaml b/stable/sonatype-nexus/templates/ingress.yaml index c1212dee2d..3a9fe9b85b 100644 --- a/stable/sonatype-nexus/templates/ingress.yaml +++ b/stable/sonatype-nexus/templates/ingress.yaml @@ -16,7 +16,11 @@ spec: http: paths: - backend: + {{- if .Values.nexusProxy.svcName }} + serviceName: {{ .Values.nexusProxy.svcName }} + {{- else }} serviceName: {{ template "nexus.fullname" . }} + {{- end }} servicePort: {{ .Values.nexusProxy.port }} path: {{ .Values.ingress.path }} {{- end }} @@ -25,7 +29,11 @@ spec: http: paths: - backend: + {{- if .Values.nexusProxy.svcName }} + serviceName: {{ .Values.nexusProxy.svcName }} + {{- else }} serviceName: {{ template "nexus.fullname" . }} + {{- end }} servicePort: {{ .Values.nexusProxy.port }} path: {{ .Values.ingress.path }} {{- end }}