mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 06:29:29 +01:00
feat: pod evictor options
This commit is contained in:
@@ -192,12 +192,10 @@ func runPodLifetimePlugin(
|
||||
|
||||
podEvictor := evictions.NewPodEvictor(
|
||||
clientset,
|
||||
evictionPolicyGroupVersion,
|
||||
false,
|
||||
nil,
|
||||
maxPodsToEvictPerNamespace,
|
||||
false,
|
||||
&events.FakeRecorder{},
|
||||
evictions.NewOptions().
|
||||
WithPolicyGroupVersion(evictionPolicyGroupVersion).
|
||||
WithMaxPodsToEvictPerNamespace(maxPodsToEvictPerNamespace),
|
||||
)
|
||||
|
||||
var thresholdPriority int32
|
||||
@@ -1579,11 +1577,7 @@ func initPodEvictorOrFail(t *testing.T, clientSet clientset.Interface, getPodsAs
|
||||
|
||||
return evictions.NewPodEvictor(
|
||||
clientSet,
|
||||
evictionPolicyGroupVersion,
|
||||
false,
|
||||
nil,
|
||||
nil,
|
||||
false,
|
||||
eventRecorder,
|
||||
evictions.NewOptions().WithPolicyGroupVersion(evictionPolicyGroupVersion),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user