Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 264 for detacher (0.23 sec)

  1. pkg/volume/flexvolume/detacher.go

    	"k8s.io/kubernetes/pkg/volume"
    )
    
    type flexVolumeDetacher struct {
    	plugin *flexVolumeAttachablePlugin
    }
    
    var _ volume.Detacher = &flexVolumeDetacher{}
    
    var _ volume.DeviceUnmounter = &flexVolumeDetacher{}
    
    // Detach is part of the volume.Detacher interface.
    func (d *flexVolumeDetacher) Detach(volumeName string, hostName types.NodeName) error {
    
    	call := d.plugin.NewDriverCall(detachCmd)
    	call.Append(volumeName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 14 13:58:56 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. pkg/volume/flexvolume/detacher-defaults.go

    )
    
    type detacherDefaults flexVolumeDetacher
    
    // Detach is part of the volume.Detacher interface.
    func (d *detacherDefaults) Detach(volumeName string, hostName types.NodeName) error {
    	klog.Warning(logPrefix(d.plugin.flexVolumePlugin), "using default Detach for volume ", volumeName, ", host ", hostName)
    	return nil
    }
    
    // WaitForDetach is part of the volume.Detacher interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  3. pkg/volume/iscsi/attacher.go

    	return plugin.NewDetacher()
    }
    
    func (detacher *iscsiDetacher) Detach(volumeName string, nodeName types.NodeName) error {
    	return nil
    }
    
    func (detacher *iscsiDetacher) UnmountDevice(deviceMountPath string) error {
    	unMounter := volumeSpecToUnmounter(detacher.mounter, detacher.host, detacher.plugin)
    	err := detacher.manager.DetachDisk(*unMounter, deviceMountPath)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 08:51:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  4. pkg/volume/fc/attacher.go

    }
    
    func (detacher *fcDetacher) Detach(volumeName string, nodeName types.NodeName) error {
    	return nil
    }
    
    func (detacher *fcDetacher) UnmountDevice(deviceMountPath string) error {
    	// Specify device name for DetachDisk later
    	devName, _, err := mount.GetDeviceNameFromMount(detacher.mounter, deviceMountPath)
    	if err != nil {
    		klog.Errorf("fc: failed to get device from mnt: %s\nError: %v", deviceMountPath, err)
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 31 12:02:51 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  5. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    	}
    	return nil
    }
    
    // Detacher
    type testPluginDetacher struct {
    	detachedVolumeMap map[string][]string
    	pluginLock        *sync.RWMutex
    }
    
    func (detacher *testPluginDetacher) Detach(volumeName string, nodeName types.NodeName) error {
    	detacher.pluginLock.Lock()
    	defer detacher.pluginLock.Unlock()
    	detacher.detachedVolumeMap[string(nodeName)] = append(detacher.detachedVolumeMap[string(nodeName)], volumeName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_attacher.go

    	// it means we have successfully detached it.
    	if attachment == nil {
    		return true, nil
    	}
    	// driver reports detach error
    	detachErr := attachment.Status.DetachError
    	if detachErr != nil {
    		klog.Error(log("detachment for VolumeAttachment for volume [%s] failed: %v", volumeHandle, detachErr.Message))
    		return false, errors.New(detachErr.Message)
    	}
    	return false, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  7. pkg/volume/testing/testing.go

    }
    
    func VerifyUnmountDeviceCallCount(expectedCallCount int, fakeVolumePlugin *FakeVolumePlugin) error {
    	detachers := fakeVolumePlugin.GetDetachers()
    	if len(detachers) == 0 && (expectedCallCount == 0) {
    		return nil
    	}
    	actualCallCount := 0
    	for _, detacher := range detachers {
    		actualCallCount = detacher.GetUnmountDeviceCallCount()
    		if expectedCallCount == 0 && actualCallCount == expectedCallCount {
    			return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_test.go

    				csiDetacher.csiClient = csiClient
    				if err := csiDetacher.Detach(volName, attachDetachVolumeHost.GetNodeName()); err != nil {
    					t.Fatal("csiTest.VolumeAll detacher.Detach failed:", err)
    				}
    				t.Log("csiTest.VolumeAll detacher.Detach succeeded for volume", volName)
    
    			} else {
    				t.Log("csiTest.VolumeAll attachable plugin not found for plugin.Detach call, skipping")
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  9. pkg/volume/volume.go

    }
    
    // Detacher can detach a volume from a node.
    type Detacher interface {
    	DeviceUnmounter
    	// Detach the given volume from the node with the given Name.
    	// volumeName is name of the volume as returned from plugin's
    	// GetVolumeName().
    	Detach(volumeName string, nodeName types.NodeName) error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_plugin_test.go

    		t.Error("watch timeout not set for attacher")
    	}
    }
    
    func TestPluginNewDetacher(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    
    	detacher, err := plug.NewDetacher()
    	if err != nil {
    		t.Fatalf("failed to create new detacher: %v", err)
    	}
    
    	csiDetacher := getCsiAttacherFromVolumeDetacher(detacher, testWatchTimeout)
    	if csiDetacher.plugin == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top