mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
volumebinding: handle special delete event in AssumeCache
Sometimes an informer might not directly send the deleted object to the OnDelete callback, but rather a DeletedFinalStateUnknown. The AssumeCache did not handle that case.
This commit is contained in:
parent
baf6014e0c
commit
c70203bda3
@ -206,7 +206,7 @@ func (c *assumeCache) delete(obj interface{}) {
|
||||
return
|
||||
}
|
||||
|
||||
name, err := cache.MetaNamespaceKeyFunc(obj)
|
||||
name, err := cache.DeletionHandlingMetaNamespaceKeyFunc(obj)
|
||||
if err != nil {
|
||||
klog.ErrorS(&errObjectName{err}, "Failed to delete")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user