[bitnami/RabbitMQ] Allow to set nodePort when type is LoadBalancer for all ports (#8369)

This commit is contained in:
Devedse
2021-12-13 09:57:29 +01:00
committed by GitHub
parent 318b546679
commit 4937d48a18
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -23,4 +23,4 @@ name: rabbitmq
sources:
- https://github.com/bitnami/bitnami-docker-rabbitmq
- https://www.rabbitmq.com
version: 8.24.11
version: 8.24.12
+3 -3
View File
@@ -58,7 +58,7 @@ spec:
targetPort: epmd
{{- if (eq .Values.service.type "ClusterIP") }}
nodePort: null
{{- else if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.epmdNodePort))) }}
{{- else if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.epmdNodePort)) }}
nodePort: {{ .Values.service.epmdNodePort }}
{{- end }}
- name: {{ .Values.service.distPortName }}
@@ -66,7 +66,7 @@ spec:
targetPort: dist
{{- if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- else if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.distNodePort))) }}
{{- else if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.distNodePort)) }}
nodePort: {{ .Values.service.distNodePort }}
{{- end }}
{{- if .Values.service.managerPortEnabled }}
@@ -85,7 +85,7 @@ spec:
targetPort: metrics
{{- if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- else if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.metricsNodePort))) }}
{{- else if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.metricsNodePort)) }}
nodePort: {{ .Values.service.metricsNodePort }}
{{- end }}
{{- end }}