Merge pull request #16307 from rook/mergify/bp/release-1.18/pr-16290

rbdmirror: fix status check for rbd rn mirroring (backport #16290)
This commit is contained in:
Travis Nielsen authored and GitHub committed 2025-08-14 09:09:48 -06:00
commit cbd9ab8c4e
1 file changed
+1 -1
@@ -592,7 +592,7 @@ func (r *ReconcileCephBlockPoolRadosNamespace) reconcileMirroring(cephBlockPoolR
}
}
if cephBlockPool.Spec.StatusCheck.Mirror.Disabled {
if cephBlockPool.Spec.StatusCheck.Mirror.Disabled || (!cephBlockPool.Spec.Mirroring.Enabled && cephBlockPoolRadosNamespace.Spec.Mirroring == nil) {
// Stop monitoring the mirroring status of this radosNamespace
if radosNamespaceContextsExists && r.radosNamespaceContexts[radosNamespaceChannelKey].started {
r.cancelMirrorMonitoring(radosNamespaceChannelKey)