Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for volumevalidation (0.27 sec)

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

    type Structural struct {
    	Items                *Structural
    	Properties           map[string]Structural
    	AdditionalProperties *StructuralOrBool
    
    	Generic
    	Extensions
    	ValidationExtensions
    
    	ValueValidation *ValueValidation
    }
    
    // +k8s:deepcopy-gen=true
    
    // StructuralOrBool is either a structural schema or a boolean.
    type StructuralOrBool struct {
    	Structural *Structural
    	Bool       bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/complete.go

    	if s == nil {
    		return nil
    	}
    
    	return validateValueValidationCompleteness(s.ValueValidation, s, fldPath, fldPath, opts)
    }
    
    func validateValueValidationCompleteness(v *ValueValidation, s *Structural, sPath, vPath *field.Path, opts ValidationOptions) field.ErrorList {
    	if v == nil {
    		return nil
    	}
    	if s == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/kubeopenapi.go

    			Allows: s.AdditionalProperties.Bool,
    			Schema: s.AdditionalProperties.Structural.ToKubeOpenAPI(),
    		}
    	}
    	s.Generic.toKubeOpenAPI(ret)
    	s.Extensions.toKubeOpenAPI(ret)
    	s.ValueValidation.toKubeOpenAPI(ret)
    	s.ValidationExtensions.toKubeOpenAPI(ret)
    	return ret
    }
    
    func (g *Generic) toKubeOpenAPI(ret *spec.Schema) {
    	if g == nil {
    		return
    	}
    
    	if len(g.Type) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/convert.go

    	}
    
    	return g, nil
    }
    
    func newValueValidation(s *apiextensions.JSONSchemaProps) (*ValueValidation, error) {
    	if s == nil {
    		return nil, nil
    	}
    	not, err := newNestedValueValidation(s.Not)
    	if err != nil {
    		return nil, err
    	}
    	v := &ValueValidation{
    		Format:           s.Format,
    		Maximum:          s.Maximum,
    		ExclusiveMaximum: s.ExclusiveMaximum,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas.go

    		return s
    	}
    	result := &schema.Structural{
    		AdditionalProperties: s.AdditionalProperties,
    		Generic:              s.Generic,
    		Extensions:           s.Extensions,
    		ValueValidation:      s.ValueValidation,
    		ValidationExtensions: s.ValidationExtensions,
    	}
    	props := make(map[string]schema.Structural, len(s.Properties))
    	for k, prop := range s.Properties {
    		props[k] = prop
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    	if s.ValueValidation == nil {
    		s.ValueValidation = &schema.ValueValidation{}
    	}
    	s.ValueValidation.MaxLength = maxLength
    	return s
    }
    
    func withMaxItems(s schema.Structural, maxItems *int64) schema.Structural {
    	if s.ValueValidation == nil {
    		s.ValueValidation = &schema.ValueValidation{}
    	}
    	s.ValueValidation.MaxItems = maxItems
    	return s
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    	}
    
    	if validationSchema.ValueValidation != nil && len(validationSchema.ValueValidation.AllOf) > 0 {
    		allOfValidators = make([]*Validator, 0, len(validationSchema.ValueValidation.AllOf))
    		for _, allOf := range validationSchema.ValueValidation.AllOf {
    			allOfValidator := validator(nestedToStructural(&allOf), nodeSchema, isResourceRoot, declType, perCallLimit)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go

    	stringSchema = schema.Structural{
    		Generic: schema.Generic{
    			Type: "string",
    		},
    	}
    	intSchema = schema.Structural{
    		Generic: schema.Generic{
    			Type: "integer",
    		},
    		ValueValidation: &schema.ValueValidation{
    			Format: "int64",
    		},
    	}
    	mapListElementSchema = schema.Structural{
    		Generic: schema.Generic{
    			Type: "object",
    		},
    		Properties: map[string]schema.Structural{
    			"key": stringSchema,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    		{name: "enums",
    			obj: map[string]interface{}{"enumStr": "Pending"},
    			schema: objectTypePtr(map[string]schema.Structural{"enumStr": {
    				Generic: schema.Generic{
    					Type: "string",
    				},
    				ValueValidation: &schema.ValueValidation{
    					Enum: []schema.JSON{
    						{Object: "Pending"},
    						{Object: "Available"},
    						{Object: "Bound"},
    						{Object: "Released"},
    						{Object: "Failed"},
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go

    				// skip non-structural schemas unless explicitly asked to produce swagger from them
    				if opts.AllowNonStructural || len(structuralschema.ValidateStructural(nil, ss)) == 0 {
    					schema = ss
    
    					// This adds ValueValidation fields (anyOf, allOf) which may be stripped below if opts.StripValueValidation is true
    					schema = schema.Unfold()
    
    					if opts.StripValueValidation {
    						schema = schema.StripValueValidations()
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 22.8K bytes
    - Viewed (0)
Back to top