Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetCSIMounterPath (0.16 sec)

  1. pkg/volume/csi/csi_util.go

    		return nil, err
    	}
    	if volSrc != nil {
    		return nil, fmt.Errorf("unexpected api.CSIVolumeSource found in volume.Spec")
    	}
    	return pvSrc, nil
    }
    
    // GetCSIMounterPath returns the mounter path given the base path.
    func GetCSIMounterPath(path string) string {
    	return filepath.Join(path, "/mount")
    }
    
    // GetCSIDriverName returns the csi driver name
    func GetCSIDriverName(spec *volume.Spec) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 28 17:14:00 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_mounter.go

    	kubeVolHost         volume.KubeletVolumeHost
    	volume.MetricsProvider
    }
    
    // volume.Volume methods
    var _ volume.Volume = &csiMountMgr{}
    
    func (c *csiMountMgr) GetPath() string {
    	dir := GetCSIMounterPath(filepath.Join(getTargetPath(c.podUID, c.specVolumeID, c.plugin.host)))
    	klog.V(4).Info(log("mounter.GetPath generated [%s]", dir))
    	return dir
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_getters.go

    			// to the list if the mounted path exists.
    			for _, volumeDir := range volumeDirs {
    				path := filepath.Join(volumePluginPath, volumeDir)
    				csimountpath := csi.GetCSIMounterPath(path)
    				if pathExists, _ := mount.PathExists(csimountpath); pathExists {
    					volumes = append(volumes, csimountpath)
    				}
    			}
    		}
    	}
    	return volumes, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 00:48:07 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top