We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76625c2 + 0a81220 commit 912099aCopy full SHA for 912099a
pkg/openstack/common.go
@@ -451,6 +451,15 @@ func (ed *EndpointDetail) ensureRoute(
451
// Delete any other owner refs from ref list to not block deletion until owners are gone
452
r.SetOwnerReferences([]metav1.OwnerReference{instanceRef})
453
454
+ // Delete certificate for the route
455
+ if ed.Service.TLS.Enabled {
456
+ err = DeleteCertificate(ctx, helper, instance.Namespace, ed.Route.TLS.CertName)
457
+ if err != nil && !k8s_errors.IsNotFound(err) {
458
+ err = fmt.Errorf("Error deleting route certificate %s: %w", ed.Route.TLS.CertName, err)
459
+ return ctrl.Result{}, err
460
+ }
461
462
+
463
// Delete route
464
err := helper.GetClient().Delete(ctx, &r)
465
if err != nil && !k8s_errors.IsNotFound(err) {
0 commit comments