- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for JSONPatch (4.23 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) -
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) -
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)