rook / rook

Storage Orchestration for Kubernetes
https://rook.io
Apache License 2.0
11.98k stars 2.64k forks source link

mon: fix mon scaledown when mons are portable (backport #14106) #14132

Closed mergify[bot] closed 2 weeks ago

mergify[bot] commented 3 weeks ago

in case of portable mons, mon scaledown was skipped with below code

if mon.NodeName == "" {
            logger.Debugf("mon %q is not scheduled to a specific host", mon.DaemonName)
            continue
        }

which skips mon removal if mon nodeName is empty but if mons are scale down in case of portable mons in that case also we want to remove extra mons to match the cephCluster configuration.

Checklist: