mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Move EvenPodsSpread metadata computation logic as a PreFilter Plugin
This commit is contained in:
@@ -58,6 +58,7 @@ func defaultPredicates() sets.String {
|
||||
// The returned function is used to restore the state of registered predicates/priorities
|
||||
// when this function is called, and should be called in tests which may modify the value
|
||||
// of a feature gate temporarily.
|
||||
// TODO(Huang-Wei): refactor this function to have a clean way to disable/enable plugins.
|
||||
func ApplyFeatureGates() (restore func()) {
|
||||
snapshot := scheduler.RegisteredPredicatesAndPrioritiesSnapshot()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user