From 5418d2dceb5276e8b62aab5d70e03ce109bbd8a3 Mon Sep 17 00:00:00 2001 From: Satoru Takeuchi Date: Tue, 13 Jul 2021 05:11:11 +0000 Subject: [PATCH] ceph: create pdb for all rgw and cephfs Fix the improper breaking from the loops to add pdbs. Signed-off-by: Satoru Takeuchi --- pkg/operator/ceph/disruption/clusterdisruption/pools.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/operator/ceph/disruption/clusterdisruption/pools.go b/pkg/operator/ceph/disruption/clusterdisruption/pools.go index 6dfcca9b4..92a9c6064 100644 --- a/pkg/operator/ceph/disruption/clusterdisruption/pools.go +++ b/pkg/operator/ceph/disruption/clusterdisruption/pools.go @@ -118,7 +118,7 @@ func (r *ReconcileClusterDisruption) reconcileCephObjectStore(cephObjectStoreLis rgwCount := objectStore.Spec.Gateway.Instances minAvailable := &intstr.IntOrString{IntVal: rgwCount - 1} if minAvailable.IntVal < 1 { - break + continue } blockOwnerDeletion := false pdb := &policyv1beta1.PodDisruptionBudget{ @@ -167,7 +167,7 @@ func (r *ReconcileClusterDisruption) reconcileCephFilesystem(cephFilesystemList minAvailable.IntVal++ } if minAvailable.IntVal < 1 { - break + continue } blockOwnerDeletion := false pdb := &policyv1beta1.PodDisruptionBudget{