Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for UsesOldSelf (0.12 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go

    type CompilationResult struct {
    	Program cel.Program
    	Error   *apiservercel.Error
    	// If true, the compiled expression contains a reference to the identifier "oldSelf".
    	UsesOldSelf bool
    	// Represents the worst-case cost of the compiled expression in terms of CEL's cost units, as used by cel.EstimateCost.
    	MaxCost uint64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    		activationFactory := validationActivationWithoutOldSelf
    		for _, rule := range compiledRules {
    			if rule.UsesOldSelf {
    				activationFactory = validationActivationWithOldSelf
    				break
    			}
    		}
    
    		return &Validator{
    			compiledRules:        compiledRules,
    			uncompiledRules:      validationSchema.XValidations,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    }
    
    type transitionRuleMatcher bool
    
    func transitionRule(t bool) validationMatcher {
    	return transitionRuleMatcher(t)
    }
    
    func (v transitionRuleMatcher) matches(cr CompilationResult) bool {
    	return cr.UsesOldSelf == bool(v)
    }
    
    func (v transitionRuleMatcher) String() string {
    	if v {
    		return "is a transition rule"
    	}
    	return "is not a transition rule"
    }
    
    func TestCelCompilation(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    									celContext.TotalCost.ObserveExpressionCost(fldPath.Child("x-kubernetes-validations").Index(i).Child("messageExpression"), cr.MessageExpressionMaxCost)
    								}
    							}
    						}
    						if cr.UsesOldSelf {
    							if uncorrelatablePath := ssv.forbidOldSelfValidations(); uncorrelatablePath != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
Back to top