From cd0b3a3122d1e517dbea0d0864a7d0803842d015 Mon Sep 17 00:00:00 2001 From: Louis Chan Date: Thu, 13 Jul 2023 18:42:35 +0800 Subject: [PATCH] Support explicit portal host --- authgear/templates/portal-ingress.yaml | 10 +++++++--- authgear/values.yaml | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/authgear/templates/portal-ingress.yaml b/authgear/templates/portal-ingress.yaml index 0d69b2f..b652425 100644 --- a/authgear/templates/portal-ingress.yaml +++ b/authgear/templates/portal-ingress.yaml @@ -1,4 +1,8 @@ {{- if .Values.authgear.ingress.enabled }} +{{ $portalHost := printf "portal.%s" .Values.authgear.baseHost }} +{{ if .Values.authgear.portalServer.host }} +{{ $portalHost = .Values.authgear.portalServer.host }} +{{ end }} {{ $portalSecretName := include "authgear.namePortal" . }} {{ if .Values.authgear.tls.portal.secretName }} {{ $portalSecretName = .Values.authgear.tls.portal.secretName }} @@ -15,9 +19,9 @@ spec: tls: - secretName: {{ $portalSecretName | quote }} hosts: - - {{ printf "portal.%s" .Values.authgear.baseHost | quote }} + - {{ $portalHost | quote }} rules: - - host: {{ printf "portal.%s" .Values.authgear.baseHost | quote }} + - host: {{ $portalHost | quote }} http: paths: - path: / @@ -38,7 +42,7 @@ metadata: spec: secretName: {{ $portalSecretName | quote }} dnsNames: - - {{ printf "portal.%s" .Values.authgear.baseHost | quote }} + - {{ $portalHost | quote }} issuerRef: name: {{ .Values.authgear.certManager.issuer.http01.name | quote }} kind: {{ .Values.authgear.certManager.issuer.http01.kind | quote }} diff --git a/authgear/values.yaml b/authgear/values.yaml index 1afc961..b9ac42c 100644 --- a/authgear/values.yaml +++ b/authgear/values.yaml @@ -249,6 +249,8 @@ authgear: image: __replace_me__ replicas: 1 + host: "" + email: sender: "" replyTo: ""