- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for oldSelf (0.11 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
XValidations: apiextensions.ValidationRules{ {Rule: "self >= oldSelf.value()", OptionalOldSelf: ptr.To(true)}, {Rule: "self >= oldSelf.orValue(1)", OptionalOldSelf: ptr.To(true)}, {Rule: "oldSelf.hasValue() ? self >= oldSelf.value() : true", OptionalOldSelf: ptr.To(true)}, {Rule: "self >= oldSelf", OptionalOldSelf: ptr.To(true)}, {Rule: "self >= oldSelf.orValue('')", OptionalOldSelf: ptr.To(true)}, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 51.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/types_jsonschema.go
// missing the value. // // When enabled `oldSelf` will be a CEL optional whose value will be // `None` if there is no old value, or when the object is initially created. // // You may check for presence of oldSelf using `oldSelf.hasValue()` and // unwrap it after checking using `oldSelf.value()`. Check the CEL // documentation for Optional types for more information:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 22:23:23 UTC 2023 - 15.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
self: va.self, hasOldSelf: true, // this means the oldSelf variable is defined for CEL to reference, not that it has a value oldSelf: types.OptionalNone, } if oldObj != nil { va.oldSelf = UnstructuredToVal(oldObj, sts) // +k8s:verify-mutation:reason=clone va.hasOldSelf = true optionalVA.oldSelf = types.OptionalOf(va.oldSelf) // +k8s:verify-mutation:reason=clone } return va, optionalVA
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/apis/apiextensions/v1beta1/types_jsonschema.go
// missing the value. // // When enabled `oldSelf` will be a CEL optional whose value will be // `None` if there is no old value, or when the object is initially created. // // You may check for presence of oldSelf using `oldSelf.hasValue()` and // unwrap it after checking using `oldSelf.value()`. Check the CEL // documentation for Optional types for more information:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 27 20:06:21 UTC 2023 - 24.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
errors: []string{"failed rule"}, }, { name: "create: new min or allow higher than oldValue", obj: 10, schema: cloneWithRule(&integerType, "self >= 10 || (oldSelf.hasValue() && oldSelf.value() <= self)"), }, { name: "block create: new min or allow higher than oldValue", obj: 9, // Can't use != null because type is integer and no overload
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/v1/types_jsonschema.go
// missing the value. // // When enabled `oldSelf` will be a CEL optional whose value will be // `None` if there is no old value, or when the object is initially created. // // You may check for presence of oldSelf using `oldSelf.hasValue()` and // unwrap it after checking using `oldSelf.value()`. Check the CEL // documentation for Optional types for more information:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 27 20:06:21 UTC 2023 - 24.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/validation_test.go
"defaultFailsRatcheting": { Type: "string", Default: jsonPtr("default"), XValidations: apiextensions.ValidationRules{ { Rule: "oldSelf.hasValue()", OptionalOldSelf: ptr.To(true), Message: "foobarErrorMessage", }, }, }, }, }, }, errors: []string{"foobarErrorMessage"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 7.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go
}, { Name: "CEL Optional OldSelf", Operations: []ratchetingTestOperation{ updateMyCRDV1Beta1Schema{&apiextensionsv1.JSONSchemaProps{ Type: "object", Properties: map[string]apiextensionsv1.JSONSchemaProps{ "field": { Type: "string", XValidations: []apiextensionsv1.ValidationRule{ { Rule: "!oldSelf.hasValue()",
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/validation/validation_test.go
expectErrs: []string{ `field[0].v1: Invalid value: "number": failed rule: self >= oldSelf`, }}, }, }, {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.
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/apis/apiextensions/v1/generated.proto
// missing the value. // // When enabled `oldSelf` will be a CEL optional whose value will be // `None` if there is no old value, or when the object is initially created. // // You may check for presence of oldSelf using `oldSelf.hasValue()` and // unwrap it after checking using `oldSelf.value()`. Check the CEL // documentation for Optional types for more information:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 39.1K bytes - Viewed (0)