Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WithRatcheting (0.39 sec)

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

    			Schema:               nodeSchema,
    		}
    	}
    
    	return nil
    }
    
    type options struct {
    	ratchetingOptions
    }
    
    type Option func(*options)
    
    func WithRatcheting(correlation *common.CorrelatedObject) Option {
    	return func(o *options) {
    		o.currentCorrelation = correlation
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				budget = celconfig.RuntimeCELCostBudget
    			}
    			errs, _ := validator.Validate(
    				ctx,
    				field.NewPath("root"),
    				c.schema,
    				c.newObj,
    				c.oldObj,
    				budget,
    				WithRatcheting(common.NewCorrelatedObject(c.newObj, c.oldObj, &model.Structural{Structural: c.schema})),
    			)
    
    			require.Len(t, errs, len(c.errors), "must have expected number of errors")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top