[COMMON] Fix problem with useNodePortExt 11/117811/3
authorJack Lucas <jflos@sonoris.net>
Fri, 12 Feb 2021 17:48:53 +0000 (12:48 -0500)
committerJack Lucas <jflos@sonoris.net>
Mon, 15 Feb 2021 17:49:36 +0000 (12:49 -0500)
Fix so that the useNodePortExt flag is honored when
creating a k8s Service with the service template.

Issue-ID: OOM-2679
Signed-off-by: Jack Lucas <jflos@sonoris.net>
Change-Id: I40ff3ab6df28ee1f9c582dff35a5360f632accbd

kubernetes/common/common/templates/_service.tpl

index dddd634..9c3010c 100644 (file)
@@ -128,7 +128,7 @@ labels: {{- include "common.labels" (dict "labels" $labels "dot" $dot) | nindent
   name: {{ $port.name }}
 {{-       end }}
 {{-       if (eq $serviceType "NodePort") }}
-  nodePort: {{ include "common.nodePortPrefix" (dict "dot" $dot "portNodePortExt" $port.useNodePortExt) }}{{ $port.nodePort }}
+  nodePort: {{ include "common.nodePortPrefix" (dict "dot" $dot "useNodePortExt" $port.useNodePortExt) }}{{ $port.nodePort }}
 {{-       end }}
 {{-     else }}
 - port: {{ default $port.port $port.plain_port }}