MCPcopy
hub / github.com/kubernetes/client-go / DeletionHandlingMetaNamespaceKeyFunc

Function DeletionHandlingMetaNamespaceKeyFunc

tools/cache/controller.go:257–262  ·  view source on GitHub ↗

DeletionHandlingMetaNamespaceKeyFunc checks for DeletedFinalStateUnknown objects before calling MetaNamespaceKeyFunc.

(obj interface{})

Source from the content-addressed store, hash-verified

255// DeletedFinalStateUnknown objects before calling
256// MetaNamespaceKeyFunc.
257func DeletionHandlingMetaNamespaceKeyFunc(obj interface{}) (string, error) {
258 if d, ok := obj.(DeletedFinalStateUnknown); ok {
259 return d.Key, nil
260 }
261 return MetaNamespaceKeyFunc(obj)
262}
263
264// NewInformer returns a Store and a controller for populating the store
265// while also providing event notifications. You should only used the returned

Callers 4

mainFunction · 0.92
MutationMethod · 0.85
ExampleNewInformerFunction · 0.85
TestHammerControllerFunction · 0.85

Calls 1

MetaNamespaceKeyFuncFunction · 0.85

Tested by 2

ExampleNewInformerFunction · 0.68
TestHammerControllerFunction · 0.68