This commit is contained in:
Stavros kois
2022-12-19 10:13:28 +02:00
parent 9a27c434c7
commit db06f43318

View File

@@ -18,10 +18,10 @@ ports:
name: {{ $name }}
protocol: {{ $protocol }}
targetPort: {{ $port.targetPort | default $name }}
{{- if and (eq $svcType "NodePort") $port.nodePort }}
{{- if and (eq $svcType "NodePort") $port.nodePort -}}
{{- if lt $port.nodePort $root.Values.global.defaults.minimumNodePort -}}
{{- fail (printf "Port number (%s) for (%s) is too low. The minimum port for Node Port is (%s)" $port.nodePort $name $root.Values.global.defaults.minimumNodePort) -}}
{{- end -}}
{{- end }}
nodePort: {{ $port.nodePort }}
{{- end -}}
{{- end -}}