Files
charts/test/nextcloud/1.6.14/templates/service.yaml
T
sonicaj 101390ba6c Upgraded catalog item(s)
This commit upgrades chia, photoprism, home-assistant, storj, nextcloud, emby catalog item(s).
2022-11-06 08:00:14 +00:00

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 }}