Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for WithRatcheting (0.12 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go

    		correlatedObject = common.NewCorrelatedObject(uNew.Object, uOld.Object, &model.Structural{Structural: a.structuralSchema})
    		options = append(options, validation.WithRatcheting(correlatedObject))
    		celOptions = append(celOptions, cel.WithRatcheting(correlatedObject))
    	}
    
    	var errs field.ErrorList
    	errs = append(errs, a.validator.ValidateUpdate(ctx, uNew, uOld, a.scale, options...)...)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 21:22:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. 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)
  3. 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