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

Method Get

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

Get retrieves an obj for the given object key from the Kubernetes Cluster. obj must be a struct pointer so that obj can be updated with the response returned by the Server.

(ctx context.Context, key ObjectKey, obj Object, opts ...GetOption)

Source from the content-addressed store, hash-verified

52 // obj must be a struct pointer so that obj can be updated with the response
53 // returned by the Server.
54 Get(ctx context.Context, key ObjectKey, obj Object, opts ...GetOption) error
55
56 // List retrieves list of objects for a given namespace and list options. On a
57 // successful call, Items field in the list will be populated with the

Callers 15

ReconcileMethod · 0.65
GetMethod · 0.65
GetMethod · 0.65
GetMethod · 0.65
GetInformerForKindMethod · 0.65
GetInformerMethod · 0.65
getInformerForKindMethod · 0.65
cache_test.goFile · 0.65
CacheTestFunction · 0.65
makeListWatcherMethod · 0.65

Implementers 15

multiNamespaceCachepkg/cache/multi_namespace_cache.go
delegatingByGVKCachepkg/cache/delegating_by_gvk_cache.go
informerCachepkg/cache/informer_cache.go
FakeInformerspkg/cache/informertest/fake_cache.go
CacheReaderpkg/cache/internal/cache_reader.go
metadataClientpkg/client/metadata_client.go
unstructuredClientpkg/client/unstructured_client.go
typedClientpkg/client/typed_client.go
namespacedClientpkg/client/namespaced_client.go
fakeReaderpkg/client/client_test.go
fakeUncachedReaderpkg/client/client_test.go
dryRunClientpkg/client/dryrun.go

Calls

no outgoing calls

Tested by 15

ReconcileMethod · 0.52
CacheTestFunction · 0.52
deleteDeploymentFunction · 0.52
deleteNamespaceFunction · 0.52
ExampleClient_getFunction · 0.52
ExampleClient_updateFunction · 0.52
deleteClusterRoleFunction · 0.52
newCRDFunction · 0.52
BenchmarkAddGetDoneFunction · 0.52