Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,172 for attacher (0.21 sec)

  1. 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)
  2. pkg/volume/flexvolume/attacher.go

    	"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)
  3. pkg/volume/fc/attacher.go

    	return volumesAttachedCheck, nil
    }
    
    func (attacher *fcAttacher) WaitForAttach(spec *volume.Spec, devicePath string, _ *v1.Pod, timeout time.Duration) (string, error) {
    	mounter, err := volumeSpecToMounter(spec, attacher.host)
    	if err != nil {
    		klog.Warningf("failed to get fc mounter: %v", err)
    		return "", err
    	}
    	return attacher.manager.AttachDisk(*mounter)
    }
    
    func (attacher *fcAttacher) GetDeviceMountPath(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 31 12:02:51 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  4. 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)
  5. pkg/volume/csi/csi_attacher.go

    			klog.Error(log("attacher.VolumesAreAttached failed for attach.ID=%v: %v", attachID, err))
    			continue
    		}
    		klog.V(4).Info(log("attacher.VolumesAreAttached attachment [%v] has status.attached=%t", attachID, attach.Status.Attached))
    		attached[spec] = attach.Status.Attached
    	}
    
    	return attached, nil
    }
    
    func (c *csiAttacher) GetDeviceMountPath(spec *volume.Spec) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_attacher_test.go

    				if attached.attached && !ok {
    					t.Error("failed to retrieve attached status for:", attached.spec)
    				}
    				if attached.attached != stat {
    					t.Errorf("expecting volume attachment %t, got %t", attached.attached, stat)
    				}
    			}
    		})
    	}
    }
    
    func TestAttacherVolumesAreAttachedWithInline(t *testing.T) {
    	type attachedSpec struct {
    		volName  string
    		spec     *volume.Spec
    		attached bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  7. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    	}}
    }
    
    // Attacher
    type testPluginAttacher struct {
    	ErrorEncountered  *bool
    	attachedVolumeMap map[string][]string
    	pluginLock        *sync.RWMutex
    }
    
    func (attacher *testPluginAttacher) Attach(spec *volume.Spec, nodeName types.NodeName) (string, error) {
    	attacher.pluginLock.Lock()
    	defer attacher.pluginLock.Unlock()
    	if spec == nil {
    		*attacher.ErrorEncountered = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/storage/v1alpha1/types_swagger_doc_generated.go

    	"attached":           "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. pkg/registry/storage/volumeattachment/storage/storage_test.go

    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*storageapi.VolumeAttachment)
    			object.Status.Attached = true
    			return object
    		},
    		//invalid update
    		func(obj runtime.Object) runtime.Object {
    			object := obj.(*storageapi.VolumeAttachment)
    			object.Spec.Attacher = "invalid-attacher-!@#$%^&*()"
    			return object
    		},
    	)
    }
    
    func TestDelete(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. pkg/registry/storage/volumeattachment/strategy_test.go

    	newAttachment := va.DeepCopy()
    	newAttachment.Status.Attached = true
    	Strategy.PrepareForUpdate(context.TODO(), newAttachment, va)
    	if newAttachment.Status.Attached {
    		t.Errorf("expected status to be %v got %v", false, newAttachment.Status.Attached)
    	}
    }
    
    func TestCreatePreventsStatusWrite(t *testing.T) {
    	va := getValidVolumeAttachment("valid-attachment")
    	va.Status.Attached = true
    	Strategy.PrepareForCreate(context.TODO(), va)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top