- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for UnstructuredToVal (0.15 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go
{ name: "set lists are equal regardless of order", lhs: UnstructuredToVal([]interface{}{"a", "b"}, &setListSchema), rhs: UnstructuredToVal([]interface{}{"b", "a"}, &setListSchema), equal: true, }, { name: "set lists are not equal if contents differ", lhs: UnstructuredToVal([]interface{}{"a", "b"}, &setListSchema), rhs: UnstructuredToVal([]interface{}{"a", "c"}, &setListSchema), equal: false, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 17.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/values_test.go
{ name: "set lists are equal regardless of order", lhs: UnstructuredToVal([]interface{}{"a", "b"}, setListSchema), rhs: UnstructuredToVal([]interface{}{"b", "a"}, setListSchema), equal: true, }, { name: "set lists are not equal if contents differ", lhs: UnstructuredToVal([]interface{}{"a", "b"}, setListSchema), rhs: UnstructuredToVal([]interface{}{"a", "c"}, setListSchema), equal: false, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:30:17 UTC 2023 - 17.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values.go
celopenapi "k8s.io/apiserver/pkg/cel/common" ) // UnstructuredToVal converts a Kubernetes unstructured data element to a CEL Val. // The root schema of custom resource schema is expected contain type meta and object meta schemas. // If Embedded resources do not contain type meta and object meta schemas, they will be added automatically. func UnstructuredToVal(unstructured interface{}, schema *structuralschema.Structural) ref.Val {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 07 02:56:51 UTC 2023 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/common/values.go
"k8s.io/apiserver/pkg/cel" ) // UnstructuredToVal converts a Kubernetes unstructured data element to a CEL Val. // The root schema of custom resource schema is expected contain type meta and object meta schemas. // If Embedded resources do not contain type meta and object meta schemas, they will be added automatically. func UnstructuredToVal(unstructured interface{}, schema Schema) ref.Val { if unstructured == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:30:17 UTC 2023 - 20.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/adaptor.go
return getXValidations(s.Schema) } func (s *Schema) WithTypeAndObjectMeta() common.Schema { return &Schema{common.WithTypeAndObjectMeta(s.Schema)} } func UnstructuredToVal(unstructured any, schema *spec.Schema) ref.Val { return common.UnstructuredToVal(unstructured, &Schema{schema}) } func SchemaDeclType(s *spec.Schema, isResourceRoot bool) *apiservercel.DeclType {
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
va := &validationActivation{ self: UnstructuredToVal(obj, sts), } optionalVA := &validationActivation{ 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
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0)