Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for WithRatcheting (0.14 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/validation/validation.go

    func NewValidationOptions(opts ...ValidationOption) ValidationOptions {
    	options := ValidationOptions{}
    	for _, opt := range opts {
    		opt(&options)
    	}
    	return options
    }
    
    func WithRatcheting(correlation *common.CorrelatedObject) ValidationOption {
    	return func(options *ValidationOptions) {
    		options.Ratcheting = true
    		options.CorrelatedObject = correlation
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 18:23:28 UTC 2023
    - 15K bytes
    - Viewed (0)
  3. 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)
Back to top