From ea11be4cc0dccf8c4fc401e2d9ece51eb7067452 Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Wed, 18 Sep 2024 18:30:51 -0400 Subject: [PATCH] Ensure that the Certificate and Key are removed from the route In the past we had set certificates on routes, since #1161 we want to use the cluster default certificates. So, if the route existed before that was merged, we need to remove the certificate and key fields. CP4AIOPS-6311 --- manageiq-operator/api/v1alpha1/helpers/miq-components/httpd.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manageiq-operator/api/v1alpha1/helpers/miq-components/httpd.go b/manageiq-operator/api/v1alpha1/helpers/miq-components/httpd.go index a9f9fd14..330b564b 100644 --- a/manageiq-operator/api/v1alpha1/helpers/miq-components/httpd.go +++ b/manageiq-operator/api/v1alpha1/helpers/miq-components/httpd.go @@ -73,6 +73,8 @@ func Route(cr *miqv1alpha1.ManageIQ, scheme *runtime.Scheme, client client.Clien } route.Spec.Host = cr.Spec.ApplicationDomain + route.Spec.TLS.Certificate = "" + route.Spec.TLS.Key = "" if internalCerts := InternalCertificatesSecret(cr, client); internalCerts.Data["httpd_crt"] != nil { route.Spec.TLS.DestinationCACertificate = string(internalCerts.Data["root_crt"])