Files
chart/library/ix-dev/charts/collabora/templates/service.yaml
Stavros Kois ab6bbb2e99 NAS-124160 / 24.04 / Allow to deploy collabora without certificate (#1549)
* Allow to deploy collabora without certificate

* rename file

* update description
2023-09-19 22:27:17 +03:00

11 lines
472 B
YAML

{{ $port := .Values.nodePort }}
{{ $ports := list }}
{{ if .Values.certificate }}
{{ $ports = mustAppend $ports (dict "name" "https" "nodePort" $port "targetPort" 443 "port" 443) }}
{{ else }}
{{ $ports = mustAppend $ports (dict "name" "http" "nodePort" $port "targetPort" 9980 "port" 9980) }}
{{ end }}
{{ $params := (. | mustDeepCopy) }}
{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }}
{{ include "common.classes.service" $params }}