Files
catalog/stable/omada-controller/8.0.17/templates/common.yaml
TrueCharts-Bot 2c9fbe01cb Commit new Chart releases for TrueCharts
Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
2022-12-27 21:09:55 +00:00

25 lines
799 B
YAML

{{/* Render the templates */}}
{{ include "tc.common.loader.init" . }}
{{/*
Omada automatically redirects to that port.
Instead of consuming the external 443 port, it's better to switch internal
But still give user the ability to change it.
When ingress is enabled, set this to 443, otherwise set it to whatever `port` is set to
*/}}
{{- $port := .Values.service.main.ports.main.port -}}
{{- if .Values.ingress.main.enabled -}}
{{- $port = 443 -}}
{{- end -}}
{{- $_ := set .Values.env "MANAGE_HTTPS_PORT" $port -}}
{{- $_ := set .Values.service.main.ports.main "targetPort" $port -}}
{{- $_ := set .Values.probes.liveness "port" $port -}}
{{- $_ := set .Values.probes.readiness "port" $port -}}
{{- $_ := set .Values.probes.startup "port" $port -}}
{{ include "tc.common.loader.apply" . }}