- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NewCorrelatedObject (0.21 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/ratcheting.go
sv := validate.NewSchemaValidator(r.schema, r.root, r.path, r.knownFormats, r.options...) return sv.Validate(new) } correlation := opts.CorrelatedObject if correlation == nil { correlation = common.NewCorrelatedObject(new, old, &celopenapi.Schema{Schema: r.schema}) } return newRatchetingValueValidator( correlation, r.schemaArgs, ).Validate(new) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 21:17:17 UTC 2024 - 7.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/common/equality.go
// reaching all of the children. // // It should be expected to have an entry for either all of the children, or // none of them. children map[interface{}]*CorrelatedObject } func NewCorrelatedObject(new, old interface{}, schema Schema) *CorrelatedObject { d := time.Duration(0) return &CorrelatedObject{ OldValue: old, Value: new, Schema: schema, Duration: &d, } }
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/apiserver/pkg/cel/common/equality_test.go
// Root object to traverse from RootObject interface{} RootOldObject interface{} } func (c TestCase) Run() error { // Create the correlated object correlatedObject := common.NewCorrelatedObject(c.RootObject, c.RootOldObject, c.Schema) // Traverse the correlated object var err error for _, key := range c.KeyPath { if correlatedObject == nil { break } switch k := key.(type) {
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/registry/customresource/strategy.go
var celOptions []cel.Option var correlatedObject *common.CorrelatedObject if utilfeature.DefaultFeatureGate.Enabled(apiextensionsfeatures.CRDValidationRatcheting) { correlatedObject = common.NewCorrelatedObject(uNew.Object, uOld.Object, &model.Structural{Structural: a.structuralSchema}) options = append(options, validation.WithRatcheting(correlatedObject)) celOptions = append(celOptions, cel.WithRatcheting(correlatedObject)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 21:22:34 UTC 2024 - 14.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0)