Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for withExpectedCapacity (0.4 sec)

  1. pkg/controller/volume/persistentvolume/binder_test.go

    				newVolume("volume1-5_2", "1Gi", "", "", v1.VolumeAvailable, v1.PersistentVolumeReclaimRetain, classEmpty),
    			},
    			initialClaims:  newClaimArray("claim1-5", "uid1-5", "1Gi", "", v1.ClaimPending, nil),
    			expectedClaims: withExpectedCapacity("10Gi", newClaimArray("claim1-5", "uid1-5", "1Gi", "volume1-5_1", v1.ClaimBound, nil, volume.AnnBoundByController, volume.AnnBindCompleted)),
    			expectedEvents: noevents,
    			errors:         noerrors,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 65.8K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/framework_test.go

    	claims[0].Spec.VolumeMode = mode
    	return claims
    }
    
    // withExpectedCapacity sets the claim.Spec.Capacity of the first claim in the
    // array to given value and returns the array.  Meant to be used to compose
    // claims specified inline in a test.
    func withExpectedCapacity(capacity string, claims []*v1.PersistentVolumeClaim) []*v1.PersistentVolumeClaim {
    	claims[0].Status.Capacity = v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/pv_controller_test.go

    			initialClaims:   withExpectedCapacity("2Gi", newClaimArray("claim5-2", "uid5-2", "2Gi", "", v1.ClaimPending, nil)),
    			expectedClaims:  withExpectedCapacity("1Gi", newClaimArray("claim5-2", "uid5-2", "2Gi", "volume5-2", v1.ClaimBound, nil, volume.AnnBoundByController, volume.AnnBindCompleted)),
    			expectedEvents:  noevents,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.4K bytes
    - Viewed (0)
Back to top