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

Function WithSubResourceBody

pkg/client/client.go:512–514  ·  view source on GitHub ↗

WithSubResourceBody returns an option that uses the given body for a subresource Update or Patch operation.

(body Object)

Source from the content-addressed store, hash-verified

510// WithSubResourceBody returns an option that uses the given body
511// for a subresource Update or Patch operation.
512func WithSubResourceBody(body Object) SubResourceUpdateAndPatchOption {
513 return &withSubresourceBody{body: body}
514}
515
516type withSubresourceBody struct {
517 body Object

Callers 2

client_test.goFile · 0.92
client_test.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…