Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for mustParse (0.1 sec)

  1. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    			Phase:    v1.ClaimBound,
    			Capacity: pv.Spec.Capacity,
    		},
    	}
    	return
    }
    
    func volumeCapacity(size int) v1.ResourceList {
    	return v1.ResourceList{v1.ResourceStorage: resource.MustParse(fmt.Sprintf("%dGi", size))}
    }
    
    func reconcileASW(asw cache.ActualStateOfWorld, dsw cache.DesiredStateOfWorld, t *testing.T) {
    	logger, _ := ktesting.NewTestContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  2. pkg/volume/testing/testing.go

    		},
    		Spec: v1.PersistentVolumeClaimSpec{
    			AccessModes: accessModes,
    			Resources: v1.VolumeResourceRequirements{
    				Requests: v1.ResourceList{
    					v1.ResourceName(v1.ResourceStorage): resource.MustParse(capacity),
    				},
    			},
    		},
    	}
    	return &claim
    }
    
    func MetricsEqualIgnoreTimestamp(a *volume.Metrics, b *volume.Metrics) bool {
    	available := a.Available == b.Available
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. pkg/apis/storage/validation/validation_test.go

    			Source: storage.VolumeAttachmentSource{
    				PersistentVolumeName: &volumeName,
    				InlineVolumeSpec: &api.PersistentVolumeSpec{
    					Capacity: api.ResourceList{
    						api.ResourceName(api.ResourceStorage): resource.MustParse("10G"),
    					},
    					AccessModes: []api.PersistentVolumeAccessMode{api.ReadWriteOnce},
    					PersistentVolumeSource: api.PersistentVolumeSource{
    						FlexVolume: &api.FlexPersistentVolumeSource{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool.go

    		})
    		if err != nil {
    			return nil, err
    		}
    
    		if deploymentID != "" && bytes.Equal(z.deploymentID[:], []byte{}) {
    			z.deploymentID = uuid.MustParse(deploymentID)
    		}
    
    		for _, storageDisk := range storageDisks[i] {
    			if storageDisk != nil && storageDisk.IsLocal() {
    				localDrives = append(localDrives, storageDisk)
    			}
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 82.5K bytes
    - Viewed (0)
Back to top