Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for myattacher (0.13 sec)

  1. pkg/apis/storage/validation/validation_test.go

    		Spec: storage.VolumeAttachmentSpec{
    			Attacher: "myattacher",
    			Source: storage.VolumeAttachmentSource{
    				PersistentVolumeName: &volumeName,
    			},
    			NodeName: "mynode",
    		},
    	}, {
    		ObjectMeta: metav1.ObjectMeta{Name: "foo-with-inlinespec"},
    		Spec: storage.VolumeAttachmentSpec{
    			Attacher: "myattacher",
    			Source: storage.VolumeAttachmentSource{
    				InlineVolumeSpec: &inlineSpec,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  2. 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)
  3. pkg/volume/iscsi/attacher.go

    	}
    
    	return volumesAttachedCheck, nil
    }
    
    func (attacher *iscsiAttacher) WaitForAttach(spec *volume.Spec, devicePath string, pod *v1.Pod, timeout time.Duration) (string, error) {
    	mounter, err := volumeSpecToMounter(spec, attacher.host, attacher.targetLocks, pod)
    	if err != nil {
    		klog.Warningf("failed to get iscsi mounter: %v", err)
    		return "", err
    	}
    	return attacher.manager.AttachDisk(*mounter)
    }
    
    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/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)
  5. 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)
  6. 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)
  7. pkg/volume/csi/csi_attacher.go

    func (c *csiAttacher) GetDeviceMountPath(spec *volume.Spec) (string, error) {
    	klog.V(4).Info(log("attacher.GetDeviceMountPath(%v)", spec))
    	deviceMountPath, err := makeDeviceMountPath(c.plugin, spec)
    	if err != nil {
    		return "", errors.New(log("attacher.GetDeviceMountPath failed to make device mount path: %v", err))
    	}
    	klog.V(4).Infof("attacher.GetDeviceMountPath succeeded, deviceMountPath: %s", deviceMountPath)
    	return deviceMountPath, 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)
  8. pkg/volume/csi/csi_attacher_test.go

    	// Setup
    	// Create a new attacher
    	fakeClient := fakeclient.NewSimpleClientset()
    	plug, tmpDir := newTestPlugin(t, fakeClient)
    	defer os.RemoveAll(tmpDir)
    	attacher, err0 := plug.NewAttacher()
    	if err0 != nil {
    		t.Fatalf("failed to create new attacher: %v", err0)
    	}
    	csiAttacher := getCsiAttacherFromVolumeAttacher(attacher, testWatchTimeout)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  9. pkg/registry/storage/volumeattachment/storage/storage_test.go

    	pvName := "foo"
    	return &storageapi.VolumeAttachment{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		Spec: storageapi.VolumeAttachmentSpec{
    			Attacher: "valid-attacher",
    			Source: storageapi.VolumeAttachmentSource{
    				PersistentVolumeName: &pvName,
    			},
    			NodeName: "valid-node",
    		},
    	}
    }
    
    func TestCreate(t *testing.T) {
    	storage, _, server := newStorage(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

    					Name: "foo",
    				},
    				Spec: storage.VolumeAttachmentSpec{
    					Attacher: "valid-attacher",
    					Source: storage.VolumeAttachmentSource{
    						PersistentVolumeName: &invalidPVName,
    					},
    					NodeName: "valid-node",
    				},
    			},
    			true,
    		},
    		{
    			"invalid attacher name",
    			&storage.VolumeAttachment{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: "foo",
    				},
    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