mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 11:48:15 +00:00
PodGC should not add DisruptionTarget condition for pods which are in terminal phase
This commit is contained in:
@@ -239,10 +239,11 @@ func TestGCOrphaned(t *testing.T) {
|
||||
pods: []*v1.Pod{
|
||||
makePod("a", "deleted", v1.PodFailed),
|
||||
makePod("b", "deleted", v1.PodSucceeded),
|
||||
makePod("c", "deleted", v1.PodRunning),
|
||||
},
|
||||
itemsInQueue: 1,
|
||||
deletedPodNames: sets.NewString("a", "b"),
|
||||
patchedPodNames: sets.NewString("a", "b"),
|
||||
deletedPodNames: sets.NewString("a", "b", "c"),
|
||||
patchedPodNames: sets.NewString("c"),
|
||||
enablePodDisruptionConditions: true,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user