Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 264 for detacher (0.29 sec)

  1. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    		time.Duration(5*time.Millisecond),
    		func() (bool, error) {
    			for i, detacher := range fakePlugin.GetDetachers() {
    				actualCallCount := detacher.GetDetachCallCount()
    				if actualCallCount == expectedDetachCallCount {
    					return true, nil
    				}
    				t.Logf(
    					"Wrong detacher[%v].GetDetachCallCount(). Expected: <%v> Actual: <%v>. Will try next detacher.",
    					i,
    					expectedDetachCallCount,
    					actualCallCount)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:14 UTC 2024
    - 72.8K bytes
    - Viewed (0)
  2. pkg/volume/flexvolume/plugin.go

    func (plugin *flexVolumeAttachablePlugin) NewAttacher() (volume.Attacher, error) {
    	return &flexVolumeAttacher{plugin}, nil
    }
    
    func (plugin *flexVolumeAttachablePlugin) NewDeviceMounter() (volume.DeviceMounter, error) {
    	return plugin.NewAttacher()
    }
    
    // NewDetacher is part of the volume.AttachableVolumePlugin interface.
    func (plugin *flexVolumeAttachablePlugin) NewDetacher() (volume.Detacher, error) {
    	return &flexVolumeDetacher{plugin}, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. pkg/volume/plugins.go

    // to a node before mounting.
    type AttachableVolumePlugin interface {
    	DeviceMountableVolumePlugin
    	NewAttacher() (Attacher, error)
    	NewDetacher() (Detacher, error)
    	// CanAttach tests if provided volume spec is attachable
    	CanAttach(spec *Spec) (bool, error)
    }
    
    // DeviceMountableVolumePlugin 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)
  4. pkg/volume/csi/csi_attacher_test.go

    		})
    	}
    }
    
    func getCsiAttacherFromVolumeAttacher(attacher volume.Attacher, watchTimeout time.Duration) *csiAttacher {
    	if watchTimeout == 0 {
    		watchTimeout = testWatchTimeout
    	}
    	csiAttacher := attacher.(*csiAttacher)
    	csiAttacher.watchTimeout = watchTimeout
    	return csiAttacher
    }
    
    func getCsiAttacherFromVolumeDetacher(detacher volume.Detacher, watchTimeout time.Duration) *csiAttacher {
    	if watchTimeout == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  5. pkg/volume/iscsi/iscsi.go

    	return true
    }
    
    var _ volume.BlockVolumeUnmapper = &iscsiDiskUnmapper{}
    var _ volume.CustomBlockVolumeUnmapper = &iscsiDiskUnmapper{}
    
    // Even though iSCSI plugin has attacher/detacher implementation, iSCSI plugin
    // needs volume detach operation during TearDownDevice(). This method is only
    // chance that operations are done on kubelet node during volume teardown sequences.
    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/csi/csi_plugin.go

    var _ volume.DeviceMountableVolumePlugin = &csiPlugin{}
    
    func (p *csiPlugin) NewAttacher() (volume.Attacher, error) {
    	return p.newAttacherDetacher()
    }
    
    func (p *csiPlugin) NewDeviceMounter() (volume.DeviceMounter, error) {
    	return p.NewAttacher()
    }
    
    func (p *csiPlugin) NewDetacher() (volume.Detacher, error) {
    	return p.newAttacherDetacher()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  7. pkg/volume/flexvolume/attacher.go

    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    type flexVolumeAttacher struct {
    	plugin *flexVolumeAttachablePlugin
    }
    
    var _ volume.Attacher = &flexVolumeAttacher{}
    
    var _ volume.DeviceMounter = &flexVolumeAttacher{}
    
    // Attach is part of the volume.Attacher interface
    func (a *flexVolumeAttacher) Attach(spec *volume.Spec, hostName types.NodeName) (string, error) {
    
    	call := a.plugin.NewDriverCall(attachCmd)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 03 23:29:42 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  8. pkg/volume/flexvolume/attacher-defaults.go

    type attacherDefaults flexVolumeAttacher
    
    // Attach is part of the volume.Attacher interface
    func (a *attacherDefaults) Attach(spec *volume.Spec, hostName types.NodeName) (string, error) {
    	klog.Warning(logPrefix(a.plugin.flexVolumePlugin), "using default Attach for volume ", spec.Name(), ", host ", hostName)
    	return "", nil
    }
    
    // WaitForAttach is part of the volume.Attacher interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    	// be unmounted are unmounted. If not, it will trigger mount/unmount
    	// operations to rectify.
    	// If attach/detach management is enabled, the manager will also check if
    	// volumes that should be attached are attached and volumes that should
    	// be detached are detached and trigger attach/detach operations as needed.
    	Run(stopCh <-chan struct{})
    
    	// StatesHasBeenSynced returns true only after syncStates process starts to sync
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/reconciler/reconciler.go

    	}
    	return nodeutil.IsNodeReady(node), nil
    }
    
    func (rc *reconciler) reconcile(ctx context.Context) {
    	// Detaches are triggered before attaches so that volumes referenced by
    	// pods that are rescheduled to a different node are detached first.
    
    	// Ensure volumes that should be detached are detached.
    	logger := klog.FromContext(ctx)
    	for _, attachedVolume := range rc.actualStateOfWorld.GetAttachedVolumes() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 21:02:38 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top