1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-28 06:29:29 +01:00

Introduce RequestEviction feature for evicting pods in background

When the feature is enabled each pod with descheduler.alpha.kubernetes.io/request-evict-only
annotation will have the eviction API error examined for a specific
error code/reason and message. If matched eviction of such a pod will be interpreted
as initiation of an eviction in background.
This commit is contained in:
Jan Chaloupka
2024-08-30 09:07:27 +02:00
parent f115e780d8
commit 3a1a3ff9d8
11 changed files with 1405 additions and 77 deletions

View File

@@ -31,6 +31,7 @@ func TestClientConnectionConfiguration(t *testing.T) {
t.Fatalf("Unable to initialize server: %v", err)
}
s.Client = clientSet
s.DefaultFeatureGates = initFeatureGates()
evictionPolicyGroupVersion, err := eutils.SupportEviction(s.Client)
if err != nil || len(evictionPolicyGroupVersion) == 0 {
t.Errorf("Error when checking support for eviction: %v", err)