From 7f8157782a5b0eb43664bfd21f6bce4c88e8cecd Mon Sep 17 00:00:00 2001 From: Houston Putman Date: Fri, 14 Jun 2024 15:19:34 -0500 Subject: [PATCH] Fix error --- controllers/solrcloud_controller.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/controllers/solrcloud_controller.go b/controllers/solrcloud_controller.go index 5e87d166..f05e3512 100644 --- a/controllers/solrcloud_controller.go +++ b/controllers/solrcloud_controller.go @@ -1051,9 +1051,7 @@ func (r *SolrCloudReconciler) cleanupOrphanPVCs(ctx context.Context, cloud *solr // Don't use the Spec replicas here, because we might be rolling down 1-by-1 and the PVCs for // soon-to-be-deleted pods should not be deleted until the pod is deleted. if util.IsPVCOrphan(pvcItem.Name, *statefulSet.Spec.Replicas) { - if e := r.deletePVC(ctx, pvcItem, logger); e != nil { - err = e - } + r.deletePVC(ctx, pvcItem, logger) } } }