mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 13:29:11 +01:00
This is a minor refactor of PodEvictor to include evictLocalStoragePods as a property (so that it doesn't need to be passed to each strategy function.) It also removes ListEvictablePodsOnNode and extends ListPodsOnANode with an optional "filter" function parameter, so that for example IsEvictable can be passed to it and achieve the same results as the function formerly known as ListEvictablePodsOnNode. This approach also now allows strategies to more explicitly extend their criteria of what IsEvictable considers an evictable pod (such as NodeAffinity, which checks that the pod can fit on any other node).
9.5 KiB
9.5 KiB