- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 62 for JSONPatch (0.43 sec)
-
staging/src/k8s.io/api/admission/v1beta1/generated.proto
// +optional optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3; // The patch body. Currently we only support "JSONPatch" which implements RFC 6902. // +optional optional bytes patch = 4; // The type of Patch. Currently we only allow "JSONPatch". // +optional optional string patchType = 5;
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 8.1K 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) -
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/controller/testutil/test_utils.go
switch pt { case types.JSONPatchType: patchObj, err := jsonpatch.DecodePatch(data) if err != nil { klog.FromContext(ctx).Error(err, "") return nil, nil } if patchedObjJS, err = patchObj.Apply(originalObjJS); err != nil { klog.FromContext(ctx).Error(err, "") return nil, nil } case types.MergePatchType: if patchedObjJS, err = jsonpatch.MergePatch(originalObjJS, data); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 15.6K bytes - Viewed (0) -
pilot/pkg/config/kube/crdclient/client.go
// at the expense of some code gen. package crdclient import ( "fmt" "sync" "time" jsonmerge "github.com/evanphx/json-patch/v5" "go.uber.org/atomic" "gomodules.xyz/jsonpatch/v2" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" klabels "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/json"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 00:12:28 UTC 2024 - 13.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/jsonmergepatch/patch_test.go
See the License for the specific language governing permissions and limitations under the License. */ package jsonmergepatch import ( "fmt" "reflect" "testing" jsonpatch "gopkg.in/evanphx/json-patch.v4" "k8s.io/apimachinery/pkg/util/dump" "k8s.io/apimachinery/pkg/util/json" "sigs.k8s.io/yaml" ) type FilterNullTestCases struct { TestCases []FilterNullTestCase }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 14.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go
// Package mutating delegates admission checks to dynamically configured // mutating webhooks. package mutating import ( "context" "errors" "fmt" "time" "go.opentelemetry.io/otel/attribute" jsonpatch "gopkg.in/evanphx/json-patch.v4" admissionv1 "k8s.io/api/admission/v1" admissionregistrationv1 "k8s.io/api/admissionregistration/v1" apiequality "k8s.io/apimachinery/pkg/api/equality"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 19.6K bytes - Viewed (0) -
common/config/.golangci.yml
- 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: Tue Jun 04 20:03:06 UTC 2024 - 11.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/config.go
} for { if c.JSONPatchMaxCopyBytes <= 0 { break } existing := atomic.LoadInt64(&jsonpatch.AccumulatedCopySizeLimit) if existing > 0 && existing < c.JSONPatchMaxCopyBytes { break } if atomic.CompareAndSwapInt64(&jsonpatch.AccumulatedCopySizeLimit, existing, c.JSONPatchMaxCopyBytes) { break } } // first add poststarthooks from delegated targets
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 47.7K bytes - Viewed (0)