[Gizmo] Use nodePortPrefix variable 37/68637/1
authorMichael Arrastia <MArrasti@amdocs.com>
Mon, 24 Sep 2018 09:10:40 +0000 (10:10 +0100)
committerMichael Arrastia <MArrasti@amdocs.com>
Mon, 24 Sep 2018 09:13:43 +0000 (10:13 +0100)
The services.yaml file should make use of nodePortPrefix in its
default nodePort declaration.

Change-Id: I5ac25a6448b760ffe04f43b052bbaf5341997934
Issue-ID: AAI-1349
Signed-off-by: Michael Arrastia <MArrasti@amdocs.com>
kubernetes/aai/charts/aai-gizmo/templates/service.yaml

index e78cc73..88948cf 100644 (file)
@@ -29,7 +29,7 @@ spec:
   ports:
     {{if eq .Values.service.type "NodePort" -}}
     - port: {{ .Values.service.internalPort }}
-      nodePort: {{ .Values.global.nodePortPrefix | default "302" }}{{ .Values.service.nodePort }}
+      nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
       name: {{ .Values.service.portName }}
     {{- else -}}
     - port: {{ .Values.service.externalPort }}