mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #77763 from apelisse/fix-dry-run-eviction
Dry-run eviction: Fix missing pdb in test
This commit is contained in:
commit
b4d2cb0001
@ -251,7 +251,7 @@ func TestEvictionDryRun(t *testing.T) {
|
|||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
client := fake.NewSimpleClientset()
|
client := fake.NewSimpleClientset(tc.pdbs...)
|
||||||
evictionRest := newEvictionStorage(storage.Store, client.PolicyV1beta1())
|
evictionRest := newEvictionStorage(storage.Store, client.PolicyV1beta1())
|
||||||
eviction := &policy.Eviction{ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "default"}, DeleteOptions: tc.evictionOptions}
|
eviction := &policy.Eviction{ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "default"}, DeleteOptions: tc.evictionOptions}
|
||||||
_, err := evictionRest.Create(testContext, eviction, nil, tc.requestOptions)
|
_, err := evictionRest.Create(testContext, eviction, nil, tc.requestOptions)
|
||||||
|
Loading…
Reference in New Issue
Block a user