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

Method Update

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

Update updates the given obj in the Kubernetes cluster. obj must be a struct pointer so that obj can be updated with the content returned by the Server.

(ctx context.Context, obj Object, opts ...UpdateOption)

Source from the content-addressed store, hash-verified

74 // Update updates the given obj in the Kubernetes cluster. obj must be a
75 // struct pointer so that obj can be updated with the content returned by the Server.
76 Update(ctx context.Context, obj Object, opts ...UpdateOption) error
77
78 // Patch patches the given obj in the Kubernetes cluster. obj must be a
79 // struct pointer so that obj can be updated with the content returned by the Server.

Callers 15

ReconcileMethod · 0.65
UpdateMethod · 0.65
UpdateMethod · 0.65
UpdateMethod · 0.65
UpdateMethod · 0.65
UpdateMethod · 0.65
UpdateMethod · 0.65
client_test.goFile · 0.65
TestWithFieldOwnerFunction · 0.65

Implementers 10

unstructuredClientpkg/client/unstructured_client.go
typedClientpkg/client/typed_client.go
clientWithFieldValidationpkg/client/fieldvalidation.go
namespacedClientpkg/client/namespaced_client.go
clientWithFieldManagerpkg/client/fieldowner.go
dryRunClientpkg/client/dryrun.go
clientpkg/client/client.go
dummyClientpkg/client/interceptor/intercept_test.
interceptorpkg/client/interceptor/intercept.go
fakeClientpkg/client/fake/client.go

Calls

no outgoing calls

Tested by 9

ReconcileMethod · 0.52
TestWithFieldOwnerFunction · 0.52
ExampleClient_updateFunction · 0.52
ReconcileMethod · 0.52