Skip to content

Commit 4e97885

Browse files
committed
fix: check if external.hostname is empty to not set an invalid value to the certificate
Signed-off-by: aaronschweig <[email protected]>
1 parent 3b0930f commit 4e97885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resources/frontproxy/certificates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (r *reconciler) serverCertificateReconciler() reconciling.NamedCertificateR
9191
// to not break existing front-proxy installations.
9292
if r.frontProxy.Spec.ExternalHostname != "" {
9393
dnsNames = append(dnsNames, r.frontProxy.Spec.ExternalHostname)
94-
} else {
94+
} else if r.frontProxy.Spec.External.Hostname != "" {
9595
dnsNames = append(dnsNames, r.frontProxy.Spec.External.Hostname)
9696
}
9797
}

0 commit comments

Comments
 (0)