init ingress config

This commit is contained in:
2023-03-14 22:10:06 +00:00
parent d1015887e8
commit 66e8f222a7
2 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "unifi-controller.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- $svcPort := 8443 -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}