- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for correlatable (0.37 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/common/equality.go
case "set": // Are sets correlatable? Only if the old value equals the current value. // We might be able to support this, but do not currently see a lot // of value // (would allow you to add/remove items from sets with ratcheting but not change them) return nil case "": fallthrough case "atomic": // Atomic lists are the default are not correlatable by item
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 21:53:21 UTC 2023 - 9.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
// 1. The current node is correlatable, and it is equal to its old value // 2. The current node has a correlatable ancestor, and the ancestor is equal // to its old value. func (r ratchetingOptions) shouldRatchetError() bool { if r.currentCorrelation != nil { return r.currentCorrelation.CachedDeepEqual() } return r.nearestParentCorrelation.CachedDeepEqual() }
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/apiserver/pkg/cel/common/equality_test.go
properties: a: { type: string } `), KeyPath: []interface{}{"a"}, NewValue: "b", OldValue: "b", }, { Name: "Atomic Array not correlatable", RootObject: mustUnstructured(`[a, b]`), RootOldObject: mustUnstructured(`[a, b]`), Schema: mustSchema(` items: type: string `),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 13 21:36:46 UTC 2023 - 21.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation_test.go
}}, }, }, {name: "validation rule under non-correlatable field", // The array makes the rule on the nested string non-correlatable // for transition rule purposes. This test ensures that a rule that // does NOT use oldSelf (is not a transition rule), still behaves // as expected under a non-correlatable field. schema: apiextensions.JSONSchemaProps{ Type: "object",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 04:49:59 UTC 2023 - 24.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation.go
// validates all `Update`s and `Create`s as a `Create` - without considering old value. // // If feature `CRDValidationRatcheting` is enabled - the validator returned // will support ratcheting unchanged correlatable fields across an update. func NewSchemaValidator(customResourceValidation *apiextensions.JSONSchemaProps) (SchemaValidator, *spec.Schema, error) { // Convert CRD schema to openapi schema openapiSchema := &spec.Schema{}
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/schema/cel/validation_test.go
x-kubernetes-validations: - rule: self == "baz" message: "gotta be baz" `), // CEL error comes from uncorrelatable portion of the schema, // but it should be ratcheted anyway because it is the descendent // of an unchanged correlatable node oldObj: mustUnstructured(` - bar: bar `), newObj: mustUnstructured(` - bar: bar `),
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/apis/apiextensions/validation/validation.go
allErrs.CELErrors = append(allErrs.CELErrors, field.Invalid(fldPath.Child("x-kubernetes-validations").Index(i).Child("rule"), schema.XValidations[i].Rule, fmt.Sprintf("oldSelf cannot be used on the uncorrelatable portion of the schema within %v", uncorrelatablePath))) } } else if schema.XValidations[i].OptionalOldSelf != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 82.6K bytes - Viewed (0)