mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 22:33:34 +00:00
add the uid in a delete event to the absentOwnerCache
This commit is contained in:
parent
21896dac4b
commit
d122de5371
@ -298,8 +298,9 @@ func TestProcessEvent(t *testing.T) {
|
|||||||
uidToNode: make(map[types.UID]*node),
|
uidToNode: make(map[types.UID]*node),
|
||||||
},
|
},
|
||||||
gc: &GarbageCollector{
|
gc: &GarbageCollector{
|
||||||
dirtyQueue: workqueue.NewTimedWorkQueue(),
|
dirtyQueue: workqueue.NewTimedWorkQueue(),
|
||||||
clock: clock.RealClock{},
|
clock: clock.RealClock{},
|
||||||
|
absentOwnerCache: NewUIDCache(2),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for i := 0; i < len(scenario.events); i++ {
|
for i := 0; i < len(scenario.events); i++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user