From 4e978859e4cac4581f58ae3ce04fb46cdbb14224 Mon Sep 17 00:00:00 2001 From: aaronschweig Date: Sun, 19 Oct 2025 11:04:07 +0200 Subject: [PATCH] fix: check if external.hostname is empty to not set an invalid value to the certificate Signed-off-by: aaronschweig --- internal/resources/frontproxy/certificates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/resources/frontproxy/certificates.go b/internal/resources/frontproxy/certificates.go index 72c1d2e..54211b3 100644 --- a/internal/resources/frontproxy/certificates.go +++ b/internal/resources/frontproxy/certificates.go @@ -91,7 +91,7 @@ func (r *reconciler) serverCertificateReconciler() reconciling.NamedCertificateR // to not break existing front-proxy installations. if r.frontProxy.Spec.ExternalHostname != "" { dnsNames = append(dnsNames, r.frontProxy.Spec.ExternalHostname) - } else { + } else if r.frontProxy.Spec.External.Hostname != "" { dnsNames = append(dnsNames, r.frontProxy.Spec.External.Hostname) } }