Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ObserveExpressionCost (0.21 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/cel_validation.go

    	// that accumulate at least 1% of total cost limit are included.
    	MostExpensive []RuleCost
    }
    
    // ObserveExpressionCost accumulates the cost of evaluating a -kubernetes-validations rule.
    func (c *TotalCost) ObserveExpressionCost(path *field.Path, cost uint64) {
    	if math.MaxUint64-c.Total < cost {
    		c.Total = math.MaxUint64
    	} else {
    		c.Total += cost
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 13.8K bytes
    - Viewed (0)
Back to top