mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 02:38:12 +00:00
TokenCleaner#evalSecret should enqueue the key
This commit is contained in:
@@ -202,6 +202,11 @@ func (tc *TokenCleaner) evalSecret(o interface{}) {
|
||||
klog.V(3).Infof("Error deleting Secret: %v", err)
|
||||
}
|
||||
} else if ttl > 0 {
|
||||
tc.queue.AddAfter(o, ttl)
|
||||
key, err := controller.KeyFunc(o)
|
||||
if err != nil {
|
||||
utilruntime.HandleError(err)
|
||||
return
|
||||
}
|
||||
tc.queue.AddAfter(key, ttl)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user