[bitnami/nginx-ingress-controller] Fix variable scope in tcp and/or udp (#2079)

* fix scoping variables in node port tcp and udp in controller-service.yaml

* bump version
This commit is contained in:
Andrea Beggiato
2020-03-19 11:14:00 +01:00
committed by GitHub
parent 8cca14f8e0
commit 9e4ca5f051
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress-controller
version: 5.3.9
version: 5.3.10
appVersion: 0.30.0
description: Chart for the nginx Ingress controller
keywords:

View File

@@ -56,7 +56,7 @@ spec:
targetPort: {{ $key }}-tcp
{{- if and (or (eq $.Values.service.type "NodePort") (eq $.Values.service.type "LoadBalancer")) (index $.Values.service.nodePorts.tcp $key) }}
nodePort: {{ index $.Values.service.nodePorts.tcp $key }}
{{- else if eq .Values.service.type "ClusterIP" }}
{{- else if eq $.Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- end }}
@@ -67,7 +67,7 @@ spec:
targetPort: {{ $key }}-udp
{{- if and (or (eq $.Values.service.type "NodePort") (eq $.Values.service.type "LoadBalancer")) (index $.Values.service.nodePorts.udp $key) }}
nodePort: {{ index $.Values.service.nodePorts.udp $key }}
{{- else if eq .Values.service.type "ClusterIP" }}
{{- else if eq $.Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- end }}