keyfunctions

package
v0.6.0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletionHandlingMetaNamespaceKeyFunc

func DeletionHandlingMetaNamespaceKeyFunc(obj interface{}) (string, error)

The original implementation of DeletionHandlingMetaNamespaceKeyFunc from https://github.com/kubernetes/kubernetes/blob/release-1.23/staging/src/k8s.io/client-go/tools/cache/controller.go#L294-L299 DeletionHandlingMetaNamespaceKeyFunc checks for DeletedFinalStateUnknown objects before calling MetaNamespaceKeyFunc.

func MetaNamespaceKeyFunc

func MetaNamespaceKeyFunc(obj interface{}) (string, error)

The original implementation of MetaNamespaceKeyFunc from https://github.com/kubernetes/kubernetes/blob/f043e3cdd6c8b8d7e52e2d0848c7bea1ec043c87/staging/src/k8s.io/client-go/tools/cache/store.go#L104-L116 MetaNamespaceKeyFunc is a convenient default KeyFunc which knows how to make keys for API objects which implement meta.Interface. The key uses the format <namespace>/<name> unless <namespace> is empty, then it's just <name>.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL