Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for GetPluginDir (0.26 sec)

  1. pkg/kubelet/volume_host.go

    var _ volume.VolumeHost = &kubeletVolumeHost{}
    var _ volume.KubeletVolumeHost = &kubeletVolumeHost{}
    
    func (kvh *kubeletVolumeHost) GetPluginDir(pluginName string) string {
    	return kvh.kubelet.getPluginDir(pluginName)
    }
    
    type kubeletVolumeHost struct {
    	kubelet                   *Kubelet
    	volumePluginMgr           volume.VolumePluginMgr
    	secretManager             secret.Manager
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/volume_host.go

    	"k8s.io/kubernetes/pkg/volume/util/subpath"
    )
    
    // VolumeHost interface implementation for PersistentVolumeController.
    
    var _ vol.VolumeHost = &PersistentVolumeController{}
    
    func (ctrl *PersistentVolumeController) GetPluginDir(pluginName string) string {
    	return ""
    }
    
    func (ctrl *PersistentVolumeController) GetVolumeDevicePluginDir(pluginName string) string {
    	return ""
    }
    
    func (ctrl *PersistentVolumeController) GetPodsDir() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_getters_test.go

    	exp = filepath.Join(root, "plugins")
    	assert.Equal(t, exp, got)
    
    	got = kubelet.getPluginsRegistrationDir()
    	exp = filepath.Join(root, "plugins_registry")
    	assert.Equal(t, exp, got)
    
    	got = kubelet.getPluginDir("foobar")
    	exp = filepath.Join(root, "plugins/foobar")
    	assert.Equal(t, exp, got)
    
    	got = kubelet.getPodDir("abc123")
    	exp = filepath.Join(root, "pods/abc123")
    	assert.Equal(t, exp, got)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 00:48:07 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_getters.go

    	return filepath.Join(kl.getRootDir(), config.DefaultKubeletPluginsRegistrationDirName)
    }
    
    // getPluginDir returns a data directory name for a given plugin name.
    // Plugins can use these directories to store data that they need to persist.
    // For per-pod plugin data, see getPodPluginDir.
    func (kl *Kubelet) getPluginDir(pluginName string) string {
    	return filepath.Join(kl.getPluginsDir(), pluginName)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 00:48:07 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. pkg/volume/fc/fc_util.go

    func makePDNameInternal(host volume.VolumeHost, wwns []string, lun string, wwids []string) string {
    	if len(wwns) != 0 {
    		w := strings.Join(wwns, "-")
    		return filepath.Join(host.GetPluginDir(fcPluginName), w+"-lun-"+lun)
    	}
    	return filepath.Join(host.GetPluginDir(fcPluginName), strings.Join(wwids, "-"))
    }
    
    // make a directory like /var/lib/kubelet/plugins/kubernetes.io/fc/volumeDevices/target-lun-0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.8K bytes
    - Viewed (0)
  6. pkg/volume/flexvolume/plugin.go

    	volumeName, err := plugin.GetVolumeName(spec)
    	if err != nil {
    		return "", fmt.Errorf("GetVolumeName failed from getDeviceMountPath: %s", err)
    	}
    
    	mountsDir := filepath.Join(plugin.host.GetPluginDir(flexVolumePluginName), plugin.driverName, "mounts")
    	return filepath.Join(mountsDir, volumeName), nil
    }
    
    func (plugin *flexVolumePlugin) RequiresFSResize() bool {
    	return plugin.capabilities.RequiresFSResize
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. pkg/controller/volume/expand/expand_controller.go

    	// with pv spec capacity.
    	if pvcStatusCap.Cmp(*pvcSpecCap) >= 0 && pvcStatusCap.Cmp(pvCap) >= 0 {
    		return true
    	}
    	return false
    }
    
    // Implementing VolumeHost interface
    func (expc *expandController) GetPluginDir(pluginName string) string {
    	return ""
    }
    
    func (expc *expandController) GetVolumeDevicePluginDir(pluginName string) string {
    	return ""
    }
    
    func (expc *expandController) GetPodsDir() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. pkg/volume/testing/volume_host.go

    	if err := host.WaitForKubeletErrNil(); err != nil {
    		t.Fatalf("Failed to wait for kubelet err to be nil while creating fake volume host: %v", err)
    	}
    	return host
    }
    
    func (f *fakeVolumeHost) GetPluginDir(podUID string) string {
    	return filepath.Join(f.rootDir, "plugins", podUID)
    }
    
    func (f *fakeVolumeHost) GetVolumeDevicePluginDir(pluginName string) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. pkg/volume/plugins.go

    // VolumeHost is an interface that plugins can use to access the kubelet.
    type VolumeHost interface {
    	// GetPluginDir returns the absolute path to a directory under which
    	// a given plugin may store data.  This directory might not actually
    	// exist on disk yet.  For plugin data that is per-pod, see
    	// GetPodPluginDir().
    	GetPluginDir(pluginName string) string
    
    	// GetVolumeDevicePluginDir returns the absolute path to a directory
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  10. pkg/volume/fc/fc.go

    		return volume.ReconstructedVolume{}, err
    	}
    	if err != nil {
    		return volume.ReconstructedVolume{}, err
    	}
    	for _, path := range paths {
    		if strings.Contains(path, plugin.host.GetPluginDir(fcPluginName)) {
    			globalPDPath = path
    			break
    		}
    	}
    	// Couldn't fetch globalPDPath
    	if len(globalPDPath) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top