(resource schema.GroupVersionResource, name string, pt types.PatchType, patch []byte, subresources ...string)
| 177 | } |
| 178 | |
| 179 | func 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 | |
| 191 | func NewPatchSubresourceAction(resource schema.GroupVersionResource, namespace, name string, pt types.PatchType, patch []byte, subresources ...string) PatchActionImpl { |
| 192 | action := PatchActionImpl{} |
no outgoing calls