DeletionHandlingMetaNamespaceKeyFunc checks for DeletedFinalStateUnknown objects before calling MetaNamespaceKeyFunc.
(obj interface{})
| 255 | // DeletedFinalStateUnknown objects before calling |
| 256 | // MetaNamespaceKeyFunc. |
| 257 | func 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 |