mirror of
https://github.com/truenas/charts.git
synced 2026-05-11 11:06:11 +08:00
11 lines
475 B
YAML
11 lines
475 B
YAML
{{ $svc := .Values.service }}
|
|
{{ $ports := list }}
|
|
{{ if eq (include "nginx.certAvailable" .) "true" }}
|
|
{{ $ports = mustAppend $ports (dict "name" "nginx-https" "targetPort" 443 "port" 443 "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 }}
|