- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for jsonpatch (0.42 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go
}, } for _, tc := range tcs { t.Run(tc.name, func(t *testing.T) { jsonPatch, err := jsonpatch.DecodePatch(tc.patch) assert.NoError(t, err, "unexpected error decode patch") actual, err := jsonPatchAnnotationValue(tc.config, tc.webhook, jsonPatch) assert.NoError(t, err, "unexpected error getting json patch annotation")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/jsonmergepatch/patch.go
current = []byte(`{}`) } addAndChangePatch, err := jsonpatch.CreateMergePatch(current, modified) if err != nil { return nil, err } // Only keep addition and changes addAndChangePatch, addAndChangePatchObj, err := keepOrDeleteNullInJsonPatch(addAndChangePatch, false) if err != nil { return nil, err } deletePatch, err := jsonpatch.CreateMergePatch(original, modified) if err != nil { return nil, err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/patches/patches.go
// JSON patch. case types.JSONPatchType: var patchObj jsonpatch.Patch patchObj, err = jsonpatch.DecodePatch(patchBytes) if err == nil { patchedData, err = patchObj.Apply(patchedData) } // Merge patch. case types.MergePatchType: patchedData, err = jsonpatch.MergePatch(patchedData, patchBytes) // Strategic merge patch.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 5.5K bytes - Viewed (0) -
staging/src/k8s.io/api/admission/v1/types.go
Result *metav1.Status `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` // The patch body. Currently we only support "JSONPatch" which implements RFC 6902. // +optional Patch []byte `json:"patch,omitempty" protobuf:"bytes,4,opt,name=patch"` // The type of Patch. Currently we only allow "JSONPatch". // +optional PatchType *PatchType `json:"patchType,omitempty" protobuf:"bytes,5,opt,name=patchType"`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 9.2K bytes - Viewed (0) -
pilot/pkg/controllers/untaint/nodeuntainter.go
// See the License for the specific language governing permissions and // limitations under the License. package untaint import ( "encoding/json" "fmt" "gomodules.xyz/jsonpatch/v2" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/types" "istio.io/istio/pkg/config/labels" kubelib "istio.io/istio/pkg/kube" "istio.io/istio/pkg/kube/controllers" "istio.io/istio/pkg/kube/kclient"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 00:50:31 UTC 2024 - 6.9K bytes - Viewed (0) -
tools/golangci-override.yaml
- pkg: google.golang.org/protobuf/encoding/protojson desc: "don't use the protojson package directly; use util/protomarshal instead" - pkg: gomodules.xyz/jsonpatch/v3 desc: "don't use v3; v2 is orders of magnitude higher performance" - pkg: k8s.io/apimachinery/pkg/util/sets desc: "use istio.io/istio/pkg/util/sets" - pkg: k8s.io/utils/env
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
if err != nil { return nil, nil, errors.NewBadRequest(fmt.Sprintf("error decoding patch: %v", err)) } } patchedJS, retErr = jsonpatch.MergePatch(versionedJS, p.patchBytes) if retErr == jsonpatch.ErrBadJSONPatch { return nil, nil, errors.NewBadRequest(retErr.Error()) } return patchedJS, strictErrors, retErr default:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0) -
pkg/test/framework/components/namespace/kube.go
} // setNamespaceLabel labels a namespace with the given key, value pair func (n *kubeNamespace) setNamespaceLabel(key, value string) error { // need to convert '/' to '~1' as per the JSON patch spec http://jsonpatch.com/#operations jsonPatchEscapedKey := strings.ReplaceAll(key, "/", "~1") nsLabelPatch := fmt.Sprintf(`[{"op":"replace","path":"/metadata/labels/%s","value":"%s"}]`, jsonPatchEscapedKey, value)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
// or patches can be set directly using strategicMergePatch, mergePatch, and jsonPatch changedPod *example.Pod strategicMergePatch string mergePatch string jsonPatch string // updatePod is the pod that is used for conflict comparison and as the starting point for the second Update updatePod *example.Pod
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0)