Allow nodePort value for the postgres-operator-ui service (#928)

* Added support for specifying a nodePort value for the postgres-operator-ui service when the type is NodePort

Co-authored-by: Marcus Portmann <marcusp@discovery.co.za>
This commit is contained in:
Marcus Portmann
2020-04-29 07:28:35 +02:00
committed by GitHub
co-authored by Marcus Portmann
parent 1d009d9595
commit 0016ebf7df
2 changed files with 6 additions and 0 deletions
@@ -11,6 +11,9 @@ spec:
ports:
- port: {{ .Values.service.port }}
targetPort: 8081
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
protocol: TCP
selector:
app.kubernetes.io/instance: {{ .Release.Name }}