- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for applyJSPatch (0.17 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
Path string `json:"path"` From string `json:"from"` Value interface{} `json:"value"` } // applyJSPatch applies the patch. Input and output objects must both have // the external version, since that is what the patch must have been constructed against. func (p *jsonPatcher) applyJSPatch(versionedJS []byte) (patchedJS []byte, strictErrors []error, retErr error) { switch p.patchType { case types.JSONPatchType:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
pod.ObjectMeta.Finalizers = []string{"foo"} versionedJS, err := runtime.Encode(codec, pod) if err != nil { t.Errorf("%s: unexpected error: %v", test.name, err) continue } _, _, err = jp.applyJSPatch(versionedJS) if err != nil { if len(test.expectedError) == 0 { t.Errorf("%s: expect no error when applying json patch, but got %v", test.name, err) continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0)