Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for volume_plugin (0.2 sec)

  1. pkg/volume/plugins.go

    // PersistentVolumePlugin is an extended interface of VolumePlugin and is used
    // by volumes that want to provide long term persistence of data
    type PersistentVolumePlugin interface {
    	VolumePlugin
    	// GetAccessModes describes the ways a given volume can be accessed/mounted.
    	GetAccessModes() []v1.PersistentVolumeAccessMode
    }
    
    // RecyclableVolumePlugin is an extended interface of VolumePlugin and is used
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_volumes_test.go

    	}
    	assert.True(t, testKubelet.volumePlugin.GetNewAttacherCallCount() >= 1, "Expected plugin NewAttacher to be called at least once")
    	assert.NoError(t, volumetest.VerifyWaitForAttachCallCount(
    		1 /* expectedWaitForAttachCallCount */, testKubelet.volumePlugin))
    	assert.NoError(t, volumetest.VerifyAttachCallCount(
    		1 /* expectedAttachCallCount */, testKubelet.volumePlugin))
    	assert.NoError(t, volumetest.VerifyMountDeviceCallCount(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  3. pkg/volume/testing/volume_host.go

    func NewFakeVolumeHost(t *testing.T, rootDir string, kubeClient clientset.Interface, plugins []VolumePlugin) FakeVolumeHost {
    	return newFakeVolumeHost(t, rootDir, kubeClient, plugins, nil, "", nil, nil)
    }
    
    func NewFakeVolumeHostWithCloudProvider(t *testing.T, rootDir string, kubeClient clientset.Interface, plugins []VolumePlugin) FakeVolumeHost {
    	return newFakeVolumeHost(t, rootDir, kubeClient, plugins, nil, "", nil, nil)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. pkg/volume/util/util.go

    func GetUniqueVolumeNameFromSpec(
    	volumePlugin volume.VolumePlugin,
    	volumeSpec *volume.Spec) (v1.UniqueVolumeName, error) {
    	if volumePlugin == nil {
    		return "", fmt.Errorf(
    			"volumePlugin should not be nil. volumeSpec.Name=%q",
    			volumeSpec.Name())
    	}
    
    	volumeName, err := volumePlugin.GetVolumeName(volumeSpec)
    	if err != nil || volumeName == "" {
    		return "", fmt.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  5. pkg/volume/downwardapi/downwardapi.go

    func ProbeVolumePlugins() []volume.VolumePlugin {
    	return []volume.VolumePlugin{&downwardAPIPlugin{}}
    }
    
    const (
    	downwardAPIPluginName = "kubernetes.io/downward-api"
    )
    
    // downwardAPIPlugin implements the VolumePlugin interface.
    type downwardAPIPlugin struct {
    	host volume.VolumeHost
    }
    
    var _ volume.VolumePlugin = &downwardAPIPlugin{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    	dsw.Lock()
    	defer dsw.Unlock()
    
    	volumePlugin, err := dsw.volumePluginMgr.FindPluginBySpec(volumeSpec)
    	if err != nil || volumePlugin == nil {
    		return "", fmt.Errorf(
    			"failed to get Plugin from volumeSpec for volume %q err=%v",
    			volumeSpec.Name(),
    			err)
    	}
    	volumePluginName := getVolumePluginNameWithDriver(volumePlugin, volumeSpec)
    	accessMode := getVolumeAccessMode(volumeSpec)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. pkg/volume/configmap/configmap.go

    func ProbeVolumePlugins() []volume.VolumePlugin {
    	return []volume.VolumePlugin{&configMapPlugin{}}
    }
    
    const (
    	configMapPluginName = "kubernetes.io/configmap"
    )
    
    // configMapPlugin implements the VolumePlugin interface.
    type configMapPlugin struct {
    	host         volume.VolumeHost
    	getConfigMap func(namespace, name string) (*v1.ConfigMap, error)
    }
    
    var _ volume.VolumePlugin = &configMapPlugin{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/cache/actual_state_of_world.go

    	asw.Lock()
    	defer asw.Unlock()
    
    	volumePlugin, err := asw.volumePluginMgr.FindPluginBySpec(volumeSpec)
    	if err != nil || volumePlugin == nil {
    		return fmt.Errorf(
    			"failed to get Plugin from volumeSpec for volume %q err=%v",
    			volumeSpec.Name(),
    			err)
    	}
    
    	if len(volumeName) == 0 {
    		volumeName, err = util.GetUniqueVolumeNameFromSpec(volumePlugin, volumeSpec)
    		if err != nil {
    			return fmt.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 45.8K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_test.go

    				t.Fatalf("csiTest.VolumeAll PluginMgr.FindPluginBySpec failed: %v", err)
    			}
    
    			if volPlug == nil {
    				t.Fatalf("csiTest.VolumeAll volumePlugin is nil")
    			}
    
    			if !volPlug.CanSupport(volSpec) {
    				t.Fatal("csiTest.VolumeAll volumePlugin.CanSupport returned false")
    			}
    
    			mounter, err := volPlug.NewMounter(volSpec, pod, volume.VolumeOptions{})
    			if err != nil || mounter == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  10. pkg/volume/hostpath/host_path.go

    func ProbeVolumePlugins(volumeConfig volume.VolumeConfig) []volume.VolumePlugin {
    	return []volume.VolumePlugin{
    		&hostPathPlugin{
    			host:   nil,
    			config: volumeConfig,
    		},
    	}
    }
    
    func FakeProbeVolumePlugins(volumeConfig volume.VolumeConfig) []volume.VolumePlugin {
    	return []volume.VolumePlugin{
    		&hostPathPlugin{
    			host:          nil,
    			config:        volumeConfig,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top