- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CachedDeepEqual (0.17 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/common/equality.go
// Ratcheting is not available on a per-index basis return nil default: // Unrecognized list type. Assume non-correlatable. return nil } } // CachedDeepEqual is equivalent to reflect.DeepEqual, but caches the // results in the tree of ratchetInvocationScratch objects on the way: // // For objects and arrays, this function will make a best effort to make
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
} // Check that the correlated object is considered equal to the expected value if (c.ExpectEqual || reflect.DeepEqual(correlatedObject.Value, correlatedObject.OldValue)) != correlatedObject.CachedDeepEqual() { return fmt.Errorf("expected equal, got not equal") } } return nil } // Creates a *spec.Schema Schema by decoding the given YAML. Panics on error
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/ratcheting.go
res := s.Validate(r.correlation.Value) if res.IsValid() { return res } // Current ratcheting rule is to ratchet errors if DeepEqual(old, new) is true. if r.correlation.CachedDeepEqual() { newRes := &validate.Result{} newRes.MergeAsWarnings(res) return newRes } return res } // SubPropertyValidator overrides the standard validator constructor for sub-properties by
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/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
// to its old value. func (r ratchetingOptions) shouldRatchetError() bool { if r.currentCorrelation != nil { return r.currentCorrelation.CachedDeepEqual() } return r.nearestParentCorrelation.CachedDeepEqual() } // Finds the next node following the field in the tree and returns options using // that node. If none could be found, then retains a reference to the last
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0)