From db06f4331876d4b9c94593e23c29ccd2c9d00eb4 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 19 Dec 2022 10:13:28 +0200 Subject: [PATCH] typo --- library/common/1.0.0/templates/lib/service/_ports.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/common/1.0.0/templates/lib/service/_ports.tpl b/library/common/1.0.0/templates/lib/service/_ports.tpl index b46c41e3ac..132e6ddd9f 100644 --- a/library/common/1.0.0/templates/lib/service/_ports.tpl +++ b/library/common/1.0.0/templates/lib/service/_ports.tpl @@ -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 -}}