diff --git a/pkg/operator/ceph/disruption/clusterdisruption/add.go b/pkg/operator/ceph/disruption/clusterdisruption/add.go index 08bed3174..0c2cb270f 100644 --- a/pkg/operator/ceph/disruption/clusterdisruption/add.go +++ b/pkg/operator/ceph/disruption/clusterdisruption/add.go @@ -69,7 +69,7 @@ func pdbPredicate[T *policyv1.PodDisruptionBudget]() predicate.TypedFuncs[T] { UpdateFunc: func(e event.TypedUpdateEvent[T]) bool { pdb := (*policyv1.PodDisruptionBudget)(e.ObjectNew) - // reconcile for the main PDB update event when first OSD goes down, that is, when `DisruptionsAllowed` gets updated to 0. + // reconcile for the main PDB update event when first OSD goes down, that is, when `DisruptionsAllowed` gets updated to 0. return pdb.Name == osdPDBAppName && pdb.Spec.MaxUnavailable.IntVal == 1 && pdb.Status.DisruptionsAllowed == 0 }, DeleteFunc: func(e event.TypedDeleteEvent[T]) bool { diff --git a/pkg/operator/ceph/disruption/clusterdisruption/osd.go b/pkg/operator/ceph/disruption/clusterdisruption/osd.go index bb3aa2d32..5a4979e47 100644 --- a/pkg/operator/ceph/disruption/clusterdisruption/osd.go +++ b/pkg/operator/ceph/disruption/clusterdisruption/osd.go @@ -268,7 +268,6 @@ func (r *ReconcileClusterDisruption) reconcilePDBsForOSDs( maxUnavailableOSDCount = 1 } else { maxUnavailableOSDCount = len(downOSDs) + 1 - resetPDBConfig(pdbStateMap) } } else { maxUnavailableOSDCount = len(downOSDs) + 1