Update helm/passkey-auth/templates/ingress.yaml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2025-08-06 21:35:31 +10:00
committed by GitHub
co-authored by Copilot
parent 52804a7949
commit c631e32cd8
+5 -6
View File
@@ -10,13 +10,12 @@ metadata:
name: {{ $fullName }}
labels:
{{- include "passkey-auth.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- if not (hasKey . "nginx.ingress.kubernetes.io/upstream-vhost") }}
nginx.ingress.kubernetes.io/upstream-vhost: {{ $.Values.config.webauthn.rpId | quote }}
{{- end }}
{{- $annotations := (deepCopy (default (dict) .Values.ingress.annotations)) }}
{{- if not (hasKey $annotations "nginx.ingress.kubernetes.io/upstream-vhost") }}
{{- $_ := set $annotations "nginx.ingress.kubernetes.io/upstream-vhost" $.Values.config.webauthn.rpId }}
{{- end }}
annotations:
{{- toYaml $annotations | nindent 4 }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}