- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for ratcheted (0.2 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/ratcheting_test.go
"small": 500, }, map[string]interface{}{ "small": 501, }, validation.WithRatcheting(nil)).IsValid()) } // Shows schemas with object fields which themselves are ratcheted can be ratcheted func TestObjectObjectFieldsRatcheting(t *testing.T) { validator := validation.NewRatchetingSchemaValidator(objectObjectSchema, nil, "", strfmt.Default) assert.True(t, validator.ValidateUpdate(map[string]interface{}{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 18:20:09 UTC 2023 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go
}}}, expectError{ applyPatchOperation{ "revert minFIeld to previously ratcheted value", myCRDV1Beta1, myCRDInstanceName, map[string]interface{}{ "minField": "value", }}}, expectError{ applyPatchOperation{ "revert maxField to previously ratcheted value", myCRDV1Beta1, myCRDInstanceName, map[string]interface{}{ "maxField": "valueThatsVeryLongSee",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 59.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
// which was correlatable. If the parent is deepequal to its old value, // then errors thrown by this node are ratcheted nearestParentCorrelation *common.CorrelatedObject } // shouldRatchetError returns true if the errors raised by the current node // should be ratcheted. // // Errors for the current node should be ratcheted if one of the following is true: // 1. The current node is correlatable, and it is equal to its old value
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/metrics_test.go
apiextensions_apiserver_validation_ratcheting_seconds_sum 1.0000000000000002e-08 apiextensions_apiserver_validation_ratcheting_seconds_count 10 `, iters: 10, }, { desc: "ratcheted change object yields metrics", obj: &unstructured.Unstructured{ Object: map[string]interface{}{ "foo": "bar", }, }, old: &unstructured.Unstructured{ Object: map[string]interface{}{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.9K bytes - Viewed (1) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
mapField: bar: notbaz otherBar: otherBaz `), errors: []string{ // Didn't get ratcheted because we changed its value from baz to notbaz `root.mapField.foo: Invalid value: "string": gotta be baz`, }, warnings: []string{ // Ratcheted because its value remained the same, even though it is invalid `root.mapField.mapField.bar: Invalid value: "string": gotta be baz`, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation.go
type SchemaCreateValidator interface { Validate(value interface{}, options ...ValidationOption) *validate.Result } type ValidationOptions struct { // Whether errors from unchanged portions of the schema should be ratcheted // This field is ignored for Validate Ratcheting bool // Correlation between old and new arguments. // If set, this is expected to be the correlation between the `new` and
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 18:23:28 UTC 2023 - 15K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/ratcheting.go
s := validate.NewSchemaValidator(r.schema, r.root, r.path, r.knownFormats, opts...) res := s.Validate(r.correlation.Value) if res.IsValid() { return res } // Current ratcheting rule is to ratchet errors if DeepEqual(old, new) is true. if r.correlation.CachedDeepEqual() { newRes := &validate.Result{} newRes.MergeAsWarnings(res) return newRes } return res }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 21:17:17 UTC 2024 - 7.7K bytes - Viewed (0)