ceph: create pdb for all rgw and cephfs

Fix the improper breaking from the loops to add pdbs.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
This commit is contained in:
Satoru Takeuchi committed 2021-07-13 05:23:51 +00:00
1 parent 8afd8b2174
commit 5418d2dceb
1 file changed
+2 -2
@@ -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{