This commit is contained in:
Stavros kois
2022-12-19 10:44:00 +02:00
parent db06f43318
commit 6e06102de3

View File

@@ -20,7 +20,7 @@ ports:
targetPort: {{ $port.targetPort | default $name }}
{{- 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) -}}
{{- fail (printf "Port number (%v) for (%s) is too low. The minimum port for Node Port is (%v)" $port.nodePort $name $root.Values.global.defaults.minimumNodePort) -}}
{{- end }}
nodePort: {{ $port.nodePort }}
{{- end -}}