MCPcopy
hub / github.com/kubernetes/client-go / NewRootPatchSubresourceAction

Function NewRootPatchSubresourceAction

testing/actions.go:179–189  ·  view source on GitHub ↗
(resource schema.GroupVersionResource, name string, pt types.PatchType, patch []byte, subresources ...string)

Source from the content-addressed store, hash-verified

177}
178
179func NewRootPatchSubresourceAction(resource schema.GroupVersionResource, name string, pt types.PatchType, patch []byte, subresources ...string) PatchActionImpl {
180 action := PatchActionImpl{}
181 action.Verb = "patch"
182 action.Resource = resource
183 action.Subresource = path.Join(subresources...)
184 action.Name = name
185 action.PatchType = pt
186 action.Patch = patch
187
188 return action
189}
190
191func NewPatchSubresourceAction(resource schema.GroupVersionResource, namespace, name string, pt types.PatchType, patch []byte, subresources ...string) PatchActionImpl {
192 action := PatchActionImpl{}

Callers 15

PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92
PatchMethod · 0.92

Calls

no outgoing calls

Tested by 1