1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

feat: support eviction of failed bare pods

This patch adds the policy(evictFailedBarePods) to allow the failed
pods without ownerReferences to be evicted. For backward compatibility,
disable the policy by default. Address #644.
This commit is contained in:
babygoat
2022-01-03 10:19:48 +08:00
parent 2b23694704
commit 1529180d70
27 changed files with 101 additions and 15 deletions

View File

@@ -150,6 +150,7 @@ func TestRemoveDuplicates(t *testing.T) {
true,
false,
false,
false,
)
t.Log("Running DeschedulerStrategy strategy")

View File

@@ -179,6 +179,7 @@ func runPodLifetimeStrategy(
false,
evictCritical,
false,
false,
),
getPodsAssignedToNode,
)
@@ -1316,5 +1317,6 @@ func initPodEvictorOrFail(t *testing.T, clientSet clientset.Interface, nodes []*
true,
false,
false,
false,
)
}

View File

@@ -140,6 +140,7 @@ func TestTooManyRestarts(t *testing.T) {
true,
false,
false,
false,
)
// Run RemovePodsHavingTooManyRestarts strategy
t.Log("Running RemovePodsHavingTooManyRestarts strategy")