[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 <guillaume28.perrin@gmail.com>
This commit is contained in:
Guillaume Perrin
2019-06-04 11:04:06 -07:00
committed by Kubernetes Prow Robot
parent 19d306e590
commit ae36a617ab
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -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:
@@ -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 }}