- {{ $svc := .Values.service }}
- {{ $ports := list }}
- {{ if eq (include "nginx.certAvailable" .) "true" }}
- {{ $ports = mustAppend $ports (dict "name" "nginx-https" "targetPort" .Values.service.nodePort "port" .Values.service.nodePort "nodePort" $svc.nodePort) }}
- {{ else }}
- {{ $ports = mustAppend $ports (dict "name" "http" "port" 80 "nodePort" $svc.nodePort) }}
- {{ end }}
- {{ $params := . }}
- {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
- {{ include "common.classes.service" $params }}
|