[stable/sonatype-nexus] Allow for additional ingress/service customization (#15662)

Signed-off-by: Hector Maldonado <me@xynova.com>
This commit is contained in:
Hec
2019-07-19 06:23:12 -07:00
committed by Kubernetes Prow Robot
parent cfbcbb1ddd
commit b5b1d5c6b9
4 changed files with 29 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: sonatype-nexus
version: 1.18.4
version: 1.18.5
appVersion: 3.15.2-01
description: Sonatype Nexus is an open source repository manager
keywords:
@@ -11,6 +11,7 @@ metadata:
{{- end }}
spec:
rules:
{{- if .Values.nexusProxy.enabled -}}
{{- if .Values.nexusProxy.env.nexusHttpHost }}
- host: {{ .Values.nexusProxy.env.nexusHttpHost }}
http:
@@ -37,6 +38,10 @@ spec:
servicePort: {{ .Values.nexusProxy.port }}
path: {{ .Values.ingress.path }}
{{- end }}
{{- end -}}
{{- with .Values.ingress.rules }}
{{ toYaml . | indent 2 }}
{{- end -}}
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
+10 -5
View File
@@ -18,12 +18,17 @@ metadata:
{{- end }}
spec:
ports:
- name: {{ .Values.service.portName }}
port: {{ .Values.service.port }}
protocol: TCP
targetPort: {{ .Values.service.targetPort }}
{{- if .Values.service.portName }}
- name: {{ .Values.service.portName }}
port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
{{- end }}
{{- with .Values.service.ports }}
{{ toYaml . | indent 2 }}
{{- end -}}
selector:
app: {{ template "nexus.name" . }}
release: {{ .Release.Name }}
type: {{ .Values.service.serviceType }}
{{- end}}
{{- end}}
+13 -3
View File
@@ -155,6 +155,15 @@ ingress:
tls:
enabled: true
secretName: nexus-tls
# Specify custom rules in addition to or instead of the nexus-proxy rules
rules:
# - host: http://nexus.127.0.0.1.nip.io
# http:
# paths:
# - backend:
# serviceName: additional-svc
# servicePort: 80
tolerations: []
@@ -195,8 +204,9 @@ secret:
service:
# name: additional-svc
enabled: false
portName: nexus-service
labels: {}
annotations: {}
targetPort: 80
port: 80
ports:
- name: nexus-service
targetPort: 80
port: 80