MCPcopy Create free account
hub / github.com/flant/shell-operator / NewJSONPatchOperation

Function NewJSONPatchOperation

pkg/kube/object_patch/operation.go:308–310  ·  view source on GitHub ↗
(jsonpatch any, apiVersion string, kind string, namespace string, name string, opts ...sdkpkg.PatchCollectorOption)

Source from the content-addressed store, hash-verified

306}
307
308func NewJSONPatchOperation(jsonpatch any, apiVersion string, kind string, namespace string, name string, opts ...sdkpkg.PatchCollectorOption) sdkpkg.PatchCollectorOperation {
309 return newPatchOperation(types.JSONPatchType, jsonpatch, apiVersion, kind, namespace, name, opts...)
310}
311
312func newPatchOperation(patchType types.PatchType, patch any, apiVersion, kind, namespace, name string, opts ...sdkpkg.PatchCollectorOption) sdkpkg.PatchCollectorOperation {
313 op := &patchOperation{

Callers 4

Test_PatchOperationsFunction · 0.85
NewFromOperationSpecFunction · 0.85
JSONPatchMethod · 0.85
PatchWithJSONMethod · 0.85

Calls 1

newPatchOperationFunction · 0.85

Tested by 1

Test_PatchOperationsFunction · 0.68