Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for withCapacity (0.24 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    			pvs: []*v1.PersistentVolume{
    				makePV("pv-a-0", waitSC.Name).
    					withPhase(v1.VolumeAvailable).
    					withCapacity(resource.MustParse("200Gi")).
    					withNodeAffinity(map[string][]string{v1.LabelHostname: {"node-a"}}).PersistentVolume,
    				makePV("pv-a-1", waitSC.Name).
    					withPhase(v1.VolumeAvailable).
    					withCapacity(resource.MustParse("200Gi")).
    					withNodeAffinity(map[string][]string{v1.LabelHostname: {"node-a"}}).PersistentVolume,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/core/v1/persistentvolumeclaimstatus.go

    	}
    	return b
    }
    
    // WithCapacity sets the Capacity field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the Capacity field is set to the value of the last call.
    func (b *PersistentVolumeClaimStatusApplyConfiguration) WithCapacity(value v1.ResourceList) *PersistentVolumeClaimStatusApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/client-go/applyconfigurations/core/v1/nodestatus.go

    	return &NodeStatusApplyConfiguration{}
    }
    
    // WithCapacity sets the Capacity field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the Capacity field is set to the value of the last call.
    func (b *NodeStatusApplyConfiguration) WithCapacity(value v1.ResourceList) *NodeStatusApplyConfiguration {
    	b.Capacity = &value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. pkg/kubelet/nodestatus/setters_test.go

    			desc: "new, ready: soft requirement warning",
    			node: withCapacity.DeepCopy(),
    			cmStatus: cm.Status{
    				SoftRequirements: fmt.Errorf("foo"),
    			},
    			expectConditions: []v1.NodeCondition{*makeReadyCondition(true, "kubelet is posting ready status. WARNING: foo", now, now)},
    		},
    		{
    			desc:             "new, not ready: storage errors",
    			node:             withCapacity.DeepCopy(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/volumebinding/test_utils.go

    				},
    			},
    		},
    	}
    	return pvb
    }
    
    func (pvb pvBuilder) withVersion(version string) pvBuilder {
    	pvb.PersistentVolume.ObjectMeta.ResourceVersion = version
    	return pvb
    }
    
    func (pvb pvBuilder) withCapacity(capacity resource.Quantity) pvBuilder {
    	pvb.PersistentVolume.Spec.Capacity = v1.ResourceList{
    		v1.ResourceName(v1.ResourceStorage): capacity,
    	}
    	return pvb
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/client-go/applyconfigurations/core/v1/persistentvolumespec.go

    	return &PersistentVolumeSpecApplyConfiguration{}
    }
    
    // WithCapacity sets the Capacity field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the Capacity field is set to the value of the last call.
    func (b *PersistentVolumeSpecApplyConfiguration) WithCapacity(value v1.ResourceList) *PersistentVolumeSpecApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 16.6K bytes
    - Viewed (0)
Back to top