Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for GetPodDeviceMapPath (0.47 sec)

  1. pkg/volume/volume.go

    	GetGlobalMapPath(spec *Spec) (string, error)
    	// GetPodDeviceMapPath returns a pod device map path
    	// and name of a symbolic link associated to a block device.
    	// ex. pods/{podUid}/{DefaultKubeletVolumeDevicesDirName}/{escapeQualifiedPluginName}/, {volumeName}
    	GetPodDeviceMapPath() (string, string)
    
    	// SupportsMetrics should return true if the MetricsProvider is
    	// initialized
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. pkg/volume/fc/fc.go

    func (fc *fcDisk) GetGlobalMapPath(spec *volume.Spec) (string, error) {
    	return fc.fcGlobalMapPath(spec)
    }
    
    // GetPodDeviceMapPath returns pod device map path and volume name
    // path: pods/{podUid}/volumeDevices/kubernetes.io~fc
    // volumeName: pv0001
    func (fc *fcDisk) GetPodDeviceMapPath() (string, string) {
    	return fc.fcPodDeviceMapPath()
    }
    
    func getVolumeSource(spec *volume.Spec) (*v1.FCVolumeSource, bool, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. pkg/kubelet/server/stats/volume_stat_calculator_test.go

    var _ volume.BlockVolume = &fakeBlockVolume{}
    
    type fakeBlockVolume struct{}
    
    func (v *fakeBlockVolume) GetGlobalMapPath(*volume.Spec) (string, error) { return "", nil }
    
    func (v *fakeBlockVolume) GetPodDeviceMapPath() (string, string) { return "", "" }
    
    func (v *fakeBlockVolume) SupportsMetrics() bool { return true }
    
    func (v *fakeBlockVolume) GetMetrics() (*volume.Metrics, error) {
    	return expectedBlockMetrics(), nil
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. pkg/volume/local/local.go

    		l.volName), nil
    }
    
    // GetPodDeviceMapPath returns pod device map path and volume name.
    // path: pods/{podUid}/volumeDevices/kubernetes.io~local-volume
    // volName: local-pv-ff0d6d4
    func (l *localVolume) GetPodDeviceMapPath() (string, string) {
    	return l.plugin.host.GetPodVolumeDeviceDir(l.podUID,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  5. pkg/volume/iscsi/iscsi.go

    func (iscsi *iscsiDisk) GetGlobalMapPath(spec *volume.Spec) (string, error) {
    	return iscsi.iscsiGlobalMapPath(spec)
    }
    
    // GetPodDeviceMapPath returns pod device map path and volume name
    // path: pods/{podUid}/volumeDevices/kubernetes.io~iscsi
    // volumeName: pv0001
    func (iscsi *iscsiDisk) GetPodDeviceMapPath() (string, string) {
    	return iscsi.iscsiPodDeviceMapPath()
    }
    
    func portalMounter(portal string) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. pkg/volume/testing/testing.go

    	return fv.GlobalMapPathCallCount
    }
    
    // Block volume support
    func (fv *FakeVolume) GetPodDeviceMapPath() (string, string) {
    	fv.RLock()
    	defer fv.RUnlock()
    	fv.PodDeviceMapPathCallCount++
    	return fv.getPodDeviceMapPath()
    }
    
    // Block volume support
    func (fv *FakeVolume) getPodDeviceMapPath() (string, string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  7. pkg/volume/util/operationexecutor/operation_generator.go

    				return volumetypes.NewOperationContext(eventErr, detailedErr, migrated)
    			}
    		}
    
    		// Execute common map
    		volumeMapPath, volName := blockVolumeMapper.GetPodDeviceMapPath()
    		mapErr := util.MapBlockVolume(og.blkUtil, devicePath, globalMapPath, volumeMapPath, volName, volumeToMount.Pod.UID)
    		if mapErr != nil {
    			// On failure, return error. Caller will log and retry.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods.go

    		}
    		// Get a symbolic link associated to a block device under pod device path
    		dirPath, volName := vol.BlockVolumeMapper.GetPodDeviceMapPath()
    		symlinkPath := filepath.Join(dirPath, volName)
    		if islinkExist, checkErr := blkutil.IsSymlinkExist(symlinkPath); checkErr != nil {
    			return nil, checkErr
    		} else if islinkExist {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top