Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for LimitRangeItem (0.2 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/core/v1/limitrangeitem.go

    	MaxLimitRequestRatio *v1.ResourceList `json:"maxLimitRequestRatio,omitempty"`
    }
    
    // LimitRangeItemApplyConfiguration constructs an declarative configuration of the LimitRangeItem type for use with
    // apply.
    func LimitRangeItem() *LimitRangeItemApplyConfiguration {
    	return &LimitRangeItemApplyConfiguration{}
    }
    
    // WithType sets the Type field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 4K bytes
    - Viewed (0)
  2. pkg/registry/core/limitrange/storage/storage_test.go

    func validNewLimitRange() *api.LimitRange {
    	return &api.LimitRange{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: metav1.NamespaceDefault,
    		},
    		Spec: api.LimitRangeSpec{
    			Limits: []api.LimitRangeItem{
    				{
    					Type: api.LimitTypePod,
    					Max: api.ResourceList{
    						api.ResourceCPU:    resource.MustParse("100"),
    						api.ResourceMemory: resource.MustParse("10000"),
    					},
    					Min: api.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 13 16:56:29 UTC 2019
    - 4.6K bytes
    - Viewed (0)
  3. plugin/pkg/admission/limitranger/admission_test.go

    	internalLimitRage := api.LimitRange{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "abc",
    			Namespace: "test",
    		},
    		Spec: api.LimitRangeSpec{
    			Limits: []api.LimitRangeItem{
    				{
    					Type:                 limitType,
    					Min:                  min,
    					Max:                  max,
    					Default:              defaultLimit,
    					DefaultRequest:       defaultRequest,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/defaults.go

    		obj.Allocatable = obj.Capacity
    	}
    }
    func SetDefaults_ObjectFieldSelector(obj *v1.ObjectFieldSelector) {
    	if obj.APIVersion == "" {
    		obj.APIVersion = "v1"
    	}
    }
    func SetDefaults_LimitRangeItem(obj *v1.LimitRangeItem) {
    	// for container limits, we apply default values
    	if obj.Type == v1.LimitTypeContainer {
    
    		if obj.Default == nil {
    			obj.Default = make(v1.ResourceList)
    		}
    		if obj.DefaultRequest == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:24:15 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. pkg/apis/core/fuzzer/fuzzer.go

    			storageLimit := randomQuantity()
    			q.Limits[core.ResourceStorage] = storageLimit.DeepCopy()
    			q.Requests[core.ResourceStorage] = storageLimit.DeepCopy()
    		},
    		func(q *core.LimitRangeItem, c fuzz.Continue) {
    			var cpuLimit resource.Quantity
    			c.Fuzz(&cpuLimit)
    
    			q.Type = core.LimitTypeContainer
    			q.Default = make(core.ResourceList)
    			q.Default[core.ResourceCPU] = cpuLimit.DeepCopy()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v1.LimitRangeItem)(nil), (*core.LimitRangeItem)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_LimitRangeItem_To_core_LimitRangeItem(a.(*v1.LimitRangeItem), b.(*core.LimitRangeItem), scope)
    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*core.LimitRangeItem)(nil), (*v1.LimitRangeItem)(nil), func(a, b interface{}, scope conversion.Scope) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  7. pkg/apis/core/zz_generated.deepcopy.go

    		}
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitRangeItem.
    func (in *LimitRangeItem) DeepCopy() *LimitRangeItem {
    	if in == nil {
    		return nil
    	}
    	out := new(LimitRangeItem)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    		}
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitRangeItem.
    func (in *LimitRangeItem) DeepCopy() *LimitRangeItem {
    	if in == nil {
    		return nil
    	}
    	out := new(LimitRangeItem)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
  9. pkg/apis/core/validation/validation_test.go

    		},
    	}, {
    		name: "pvc-min-only",
    		spec: core.LimitRangeSpec{
    			Limits: []core.LimitRangeItem{{
    				Type: core.LimitTypePersistentVolumeClaim,
    				Min:  getStorageResourceList("5Gi"),
    			}},
    		},
    	}, {
    		name: "pvc-max-only",
    		spec: core.LimitRangeSpec{
    			Limits: []core.LimitRangeItem{{
    				Type: core.LimitTypePersistentVolumeClaim,
    				Max:  getStorageResourceList("10Gi"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/core/v1/generated.pb.go

    func (m *LimitRangeItem) Reset()      { *m = LimitRangeItem{} }
    func (*LimitRangeItem) ProtoMessage() {}
    func (*LimitRangeItem) Descriptor() ([]byte, []int) {
    	return fileDescriptor_6c07b07c062484ab, []int{80}
    }
    func (m *LimitRangeItem) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *LimitRangeItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.8M bytes
    - Viewed (0)
Back to top