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

Method Patch

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

Patch patches 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, patch Patch, opts ...PatchOption)

Source from the content-addressed store, hash-verified

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.
80 Patch(ctx context.Context, obj Object, patch Patch, opts ...PatchOption) error
81
82 // DeleteAllOf deletes all objects of the given type matching the given options.
83 DeleteAllOf(ctx context.Context, obj Object, opts ...DeleteAllOfOption) error

Callers 15

PatchMethod · 0.65
PatchSubResourceMethod · 0.65
PatchMethod · 0.65
PatchSubResourceMethod · 0.65
PatchMethod · 0.65
PatchSubResourceMethod · 0.65
PatchMethod · 0.65
PatchMethod · 0.65
PatchMethod · 0.65
PatchMethod · 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 6

TestWithFieldOwnerFunction · 0.52
ExampleClient_patchFunction · 0.52