- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 218 for XValidations (0.14 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/cel_validation.go
var unbounded *uint64 = nil // CELSchemaContext keeps track of data used by x-kubernetes-validations rules for a specific schema node. type CELSchemaContext struct { // withinValidationRuleScope is true if the schema at the current level or above have x-kubernetes-validations rules. typeInfo // should only be populated for schema nodes where this is true. withinValidationRuleScope bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 13.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go
updateMyCRDV1Beta1Schema{&apiextensionsv1.JSONSchemaProps{ Type: "object", Properties: map[string]apiextensionsv1.JSONSchemaProps{ "field": { Type: "string", XValidations: []apiextensionsv1.ValidationRule{ { Rule: "!oldSelf.hasValue()", Message: "oldSelf must be null", OptionalOldSelf: ptr(true), }, },
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/apiserver/pkg/cel/openapi/adaptor.go
} func (s *Schema) XMapType() string { return getXMapType(s.Schema) } func (s *Schema) XListMapKeys() []string { return getXListMapKeys(s.Schema) } func (s *Schema) XValidations() []common.ValidationRule { return getXValidations(s.Schema) } func (s *Schema) WithTypeAndObjectMeta() common.Schema { return &Schema{common.WithTypeAndObjectMeta(s.Schema)} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 10 21:26:55 UTC 2023 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
} // validator creates a Validator for all x-kubernetes-validations at the level of the provided schema and lower and // returns the Validator if any x-kubernetes-validations exist in the schema, or nil if no x-kubernetes-validations // exist. declType is expected to be a CEL DeclType corresponding to the structural schema.
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/validation_test.go
{name: "immutability transition rule", schema: apiextensions.JSONSchemaProps{ Type: "object", Properties: map[string]apiextensions.JSONSchemaProps{ "field": { Type: "string", XValidations: []apiextensions.ValidationRule{ { Rule: "self == oldSelf", }, }, }, }, }, objects: []interface{}{ map[string]interface{}{"field": "x"}, },
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
} if len(in.XValidations) != 0 { var serializationValidationRules apiextensionsv1.ValidationRules if err := apiextensionsv1.Convert_apiextensions_ValidationRules_To_v1_ValidationRules(&in.XValidations, &serializationValidationRules, nil); err != nil { return err } out.VendorExtensible.AddExtension("x-kubernetes-validations", convertSliceToInterfaceSlice(serializationValidationRules)) }
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/validation.go
allErrs = append(allErrs, field.Forbidden(fldPath.Child("x-kubernetes-map-type"), "must be undefined to be structural")) } if len(v.ValidationExtensions.XValidations) > 0 && !opts.AllowNestedXValidations { allErrs = append(allErrs, field.Forbidden(fldPath.Child("x-kubernetes-validations"), "must be empty to be structural")) } // forbid reasoning about metadata because it can lead to metadata restriction we don't want
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 14.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/structural.go
// used for validation rather than structure. type ValidationExtensions struct { // x-kubernetes-validations describes a list of validation rules for expression validation. // Use the v1 struct since this gets serialized as an extension. XValidations apiextensionsv1.ValidationRules } // +k8s:deepcopy-gen=true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 6.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/conversion_test.go
} }) } } func TestMemoryEqual(t *testing.T) { testcases := []struct { a interface{} b interface{} }{ {apiextensions.JSONSchemaProps{}.XValidations, JSONSchemaProps{}.XValidations}, } for _, tc := range testcases { aType := reflect.TypeOf(tc.a) bType := reflect.TypeOf(tc.b) t.Run(aType.String(), func(t *testing.T) { assertEqualTypes(t, nil, aType, bType)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 29.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/zz_generated.conversion.go
out.XListMapKeys = *(*[]string)(unsafe.Pointer(&in.XListMapKeys)) out.XListType = (*string)(unsafe.Pointer(in.XListType)) out.XMapType = (*string)(unsafe.Pointer(in.XMapType)) out.XValidations = *(*apiextensions.ValidationRules)(unsafe.Pointer(&in.XValidations)) return nil } // Convert_v1_JSONSchemaProps_To_apiextensions_JSONSchemaProps is an autogenerated conversion function.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 67.5K bytes - Viewed (0)