Skip to content

Commit

Permalink
Ensure that the Certificate and Key are removed from the route
Browse files Browse the repository at this point in the history
In the past we had set certificates on routes, since ManageIQ#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
  • Loading branch information
bdunne committed Sep 18, 2024
1 parent ceb4566 commit ea11be4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit ea11be4

Please sign in to comment.