Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 394 for volumeID (0.13 sec)

  1. pkg/volume/csi/csi_client_test.go

    		{
    			name:               "when nodeVolumeStats=on, VolumeID=on, DeviceMountPath=on, VolumeCondition=on",
    			volumeStatsSet:     true,
    			volumeConditionSet: true,
    			volumeData: VolumeStatsOptions{
    				VolumeSpec:      spec,
    				VolumeID:        "volume1",
    				DeviceMountPath: "/foo/bar",
    			},
    			success: true,
    		},
    		{
    			name:               "when nodeVolumeStats=on, VolumeID=on, DeviceMountPath=on, VolumeCondition=off",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  2. pkg/volume/portworx/portworx.go

    	// Detach a volume
    	DetachVolume(unmounter *portworxVolumeUnmounter) error
    	// Mount a volume
    	MountVolume(mounter *portworxVolumeMounter, mountDir string) error
    	// Unmount a volume
    	UnmountVolume(unmounter *portworxVolumeUnmounter, mountDir string) error
    	// Resize a volume
    	ResizeVolume(spec *volume.Spec, newSize resource.Quantity, host volume.VolumeHost) error
    }
    
    // portworxVolume volumes are portworx block devices
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_block_test.go

    	"k8s.io/kubernetes/pkg/volume"
    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    func prepareBlockMapperTest(plug *csiPlugin, specVolumeName string, t *testing.T) (*csiBlockMapper, *volume.Spec, *api.PersistentVolume, error) {
    	registerFakePlugin(testDriver, "endpoint", []string{"1.0.0"}, t)
    	pv := makeTestPV(specVolumeName, 10, testDriver, testVol)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_client.go

    	if c.nodeV1ClientCreator == nil {
    		return opts.newSize, fmt.Errorf("version of CSI driver does not support volume expansion")
    	}
    
    	if opts.volumeID == "" {
    		return opts.newSize, errors.New("missing volume id")
    	}
    	if opts.volumePath == "" {
    		return opts.newSize, errors.New("missing volume path")
    	}
    
    	if opts.newSize.Value() < 0 {
    		return opts.newSize, errors.New("size can not be less than 0")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 20 10:15:36 UTC 2022
    - 22.1K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_mounter.go

    	volumeLifecycleMode storage.VolumeLifecycleMode
    	volumeID            string
    	specVolumeID        string
    	readOnly            bool
    	needSELinuxRelabel  bool
    	spec                *volume.Spec
    	pod                 *api.Pod
    	podUID              types.UID
    	publishContext      map[string]string
    	kubeVolHost         volume.KubeletVolumeHost
    	volume.MetricsProvider
    }
    
    // volume.Volume methods
    var _ volume.Volume = &csiMountMgr{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi.go

    		} else {
    			return parsedMaxVols
    		}
    	}
    
    	return -1
    }
    
    // VolumeFilter contains information on how to filter PD Volumes when checking PD Volume caps.
    type VolumeFilter struct {
    	// Filter normal volumes
    	FilterVolume           func(vol *v1.Volume) (id string, relevant bool)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  7. pkg/volume/portworx/portworx_util.go

    		}
    		spec.VolumeLabels[k] = v
    	}
    
    	volumeID, err := driver.Create(locator, source, spec)
    	if err != nil {
    		klog.Errorf("Error creating Portworx Volume : %v", err)
    		return "", 0, nil, err
    	}
    
    	klog.Infof("Successfully created Portworx volume for PVC: %v", p.options.PVC.Name)
    	return volumeID, requestGiB, nil, err
    }
    
    // DeleteVolume deletes a Portworx volume
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go

    	oneVolPod := st.MakePod().Volume(v1.Volume{
    		VolumeSource: v1.VolumeSource{
    			AWSElasticBlockStore: &v1.AWSElasticBlockStoreVolumeSource{VolumeID: "ovp"},
    		},
    	}).Obj()
    	twoVolPod := st.MakePod().Volume(v1.Volume{
    		VolumeSource: v1.VolumeSource{
    			AWSElasticBlockStore: &v1.AWSElasticBlockStoreVolumeSource{VolumeID: "tvp1"},
    		},
    	}).Volume(v1.Volume{
    		VolumeSource: v1.VolumeSource{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 36.8K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_block.go

    	"k8s.io/kubernetes/pkg/util/removeall"
    	"k8s.io/kubernetes/pkg/volume"
    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    	utilstrings "k8s.io/utils/strings"
    )
    
    type csiBlockMapper struct {
    	csiClientGetter
    	k8s        kubernetes.Interface
    	plugin     *csiPlugin
    	driverName csiDriverName
    	specName   string
    	volumeID   string
    	readOnly   bool
    	spec       *volume.Spec
    	pod        *v1.Pod
    	podUID     types.UID
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go

    	inTreeInlineVolPod := &v1.Pod{
    		Spec: v1.PodSpec{
    			Volumes: []v1.Volume{
    				{
    					VolumeSource: v1.VolumeSource{
    						AWSElasticBlockStore: &v1.AWSElasticBlockStoreVolumeSource{
    							VolumeID: "aws-inline1",
    						},
    					},
    				},
    			},
    		},
    	}
    	inTreeInlineVolPodWithSameCSIVolumeID := &v1.Pod{
    		Spec: v1.PodSpec{
    			Volumes: []v1.Volume{
    				{
    					VolumeSource: v1.VolumeSource{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 28.6K bytes
    - Viewed (0)
Back to top