MCPcopy
hub / github.com/kubernetes-sigs/controller-runtime / ObjectKeyFromObject

Function ObjectKeyFromObject

pkg/client/interfaces.go:35–37  ·  view source on GitHub ↗

ObjectKeyFromObject returns the ObjectKey given a runtime.Object.

(obj Object)

Source from the content-addressed store, hash-verified

33
34// ObjectKeyFromObject returns the ObjectKey given a runtime.Object.
35func ObjectKeyFromObject(obj Object) ObjectKey {
36 return ObjectKey{Namespace: obj.GetNamespace(), Name: obj.GetName()}
37}
38
39// Patch is a patch that can be applied to a Kubernetes object.
40type Patch interface {

Callers 11

CacheTestFunction · 0.92
client_test.goFile · 0.92
client_test.goFile · 0.92
GetMethod · 0.92
CreateMethod · 0.92
UpdateMethod · 0.92
CreateOrUpdateFunction · 0.92
CreateOrPatchFunction · 0.92
mutateFunction · 0.92
reconcile_test.goFile · 0.92
manager_test.goFile · 0.92

Calls 2

GetNamespaceMethod · 0.80
GetNameMethod · 0.80

Tested by 1

CacheTestFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…