Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for myattacher (0.16 sec)

  1. pkg/volume/volume.go

    type CustomBlockVolumeMapper interface {
    	BlockVolumeMapper
    	// SetUpDevice prepares the volume to the node by the plugin specific way.
    	// For most in-tree plugins, attacher.Attach() and attacher.WaitForAttach()
    	// will do necessary works.
    	// This may be called more than once, so implementations must be idempotent.
    	// SetUpDevice returns stagingPath if device setup was successful
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. pkg/volume/testing/testing.go

    // a zero AttachCallCount. Otherwise it returns an error.
    func VerifyZeroAttachCalls(fakeVolumePlugin *FakeVolumePlugin) error {
    	for _, attacher := range fakeVolumePlugin.GetAttachers() {
    		actualCallCount := attacher.GetAttachCallCount()
    		if actualCallCount != 0 {
    			return fmt.Errorf(
    				"At least one attacher has non-zero AttachCallCount: <%v>.",
    				actualCallCount)
    		}
    	}
    
    	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)
  3. staging/src/k8s.io/api/storage/v1/types.go

    }
    
    // VolumeAttachmentSpec is the specification of a VolumeAttachment request.
    type VolumeAttachmentSpec struct {
    	// attacher indicates the name of the volume driver that MUST handle this
    	// request. This is the name returned by GetPluginName().
    	Attacher string `json:"attacher" protobuf:"bytes,1,opt,name=attacher"`
    
    	// source represents the volume that should be attached.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    			return
    		}
    		// Volume is not attached (or doesn't implement attacher), kubelet attach is disabled, wait
    		// for controller to finish attaching volume.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. pkg/volume/util/util.go

    // attacher to fail fast in such cases.
    // Please see https://github.com/kubernetes/kubernetes/issues/40669 and https://github.com/kubernetes/kubernetes/pull/40148#discussion_r98055047
    func IsMultiAttachAllowed(volumeSpec *volume.Spec) bool {
    	if volumeSpec == nil {
    		// we don't know if it's supported or not and let the attacher fail later in cases it's not supported
    		return true
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  6. pkg/volume/util/operationexecutor/operation_generator.go

    			return volumetypes.NewOperationContext(eventErr, detailedErr, migrated)
    		}
    
    		// Get attacher, if possible
    		attachableVolumePlugin, _ :=
    			og.volumePluginMgr.FindAttachablePluginBySpec(volumeToMount.VolumeSpec)
    		var volumeAttacher volume.Attacher
    		if attachableVolumePlugin != nil {
    			volumeAttacher, _ = attachableVolumePlugin.NewAttacher()
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  7. pkg/volume/flexvolume/plugin.go

    			MetricsProvider: metricsProvider,
    		},
    		runner: runner,
    	}, nil
    }
    
    // NewAttacher is part of the volume.AttachableVolumePlugin interface.
    func (plugin *flexVolumeAttachablePlugin) NewAttacher() (volume.Attacher, error) {
    	return &flexVolumeAttacher{plugin}, nil
    }
    
    func (plugin *flexVolumeAttachablePlugin) NewDeviceMounter() (volume.DeviceMounter, error) {
    	return plugin.NewAttacher()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. 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)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  9. pkg/volume/util/operationexecutor/operation_executor.go

    	// to fetch the node object.
    	// If the volume is found, the actual state of the world is updated to mark
    	// the volume as attached.
    	// If the volume does not implement the attacher interface, it is assumed to
    	// be attached and the actual state of the world is updated accordingly.
    	// If the volume is not found or there is an error (fetching the node
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_plugin.go

    }
    
    // volume.AttachableVolumePlugin methods
    var _ volume.AttachableVolumePlugin = &csiPlugin{}
    
    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) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
Back to top