Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for waitforattach (0.32 sec)

  1. pkg/volume/volume.go

    	VolumesAreAttached(specs []*Spec, nodeName types.NodeName) (map[*Spec]bool, error)
    
    	// WaitForAttach blocks until the device is attached to this
    	// node. If it successfully attaches, the path to the device
    	// is returned. Otherwise, if the device does not attach after
    	// the given timeout period, an error will be returned.
    	WaitForAttach(spec *Spec, devicePath string, pod *v1.Pod, timeout time.Duration) (string, 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)
  2. pkg/volume/util/operationexecutor/operation_generator.go

    		if volumeAttacher != nil {
    			// Wait for attachable volumes to finish attaching
    			klog.InfoS(volumeToMount.GenerateMsgDetailed("MountVolume.WaitForAttach entering", fmt.Sprintf("DevicePath %q", volumeToMount.DevicePath)), "pod", klog.KObj(volumeToMount.Pod))
    
    			devicePath, err = volumeAttacher.WaitForAttach(
    				volumeToMount.VolumeSpec, devicePath, volumeToMount.Pod, waitForAttachTimeout)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher_test.go

    			}
    			wg.Wait()
    		})
    	}
    }
    
    func TestAttacherWaitForVolumeAttachmentWithCSIDriver(t *testing.T) {
    	// In order to detect if the volume plugin would skip WaitForAttach for non-attachable drivers,
    	// we do not instantiate any VolumeAttachment. So if the plugin does not skip attach,  WaitForVolumeAttachment
    	// will return an error that volume attachment was not found.
    	tests := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/storage/v1/types.go

    	// attachmentMetadata is populated with any
    	// information returned by the attach operation, upon successful attach, that must be passed
    	// into subsequent WaitForAttach or Mount calls.
    	// This field must only be set by the entity completing the attach
    	// operation, i.e. the external-attacher.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    		// Assert
    		// 4. When the volume is mounted again, expect that UnmountDevice operation did not clear devicePath
    		if devicePath == "" {
    			klog.ErrorS(nil, "Expected WaitForAttach called with devicePath from Node.Status")
    			close(finished)
    			return "", fmt.Errorf("Expected devicePath from Node.Status")
    		}
    		close(finished)
    		return devicePath, nil
    	}
    	fakePlugin.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  6. pkg/volume/testing/testing.go

    	}
    	return "/dev/vdb-test", nil
    }
    
    func (fv *FakeVolume) GetAttachCallCount() int {
    	fv.RLock()
    	defer fv.RUnlock()
    	return fv.AttachCallCount
    }
    
    func (fv *FakeVolume) WaitForAttach(spec *volume.Spec, devicePath string, pod *v1.Pod, spectimeout time.Duration) (string, error) {
    	fv.Lock()
    	defer fv.Unlock()
    	fv.WaitForAttachCallCount++
    	if fv.WaitForAttachHook != 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)
  7. pkg/generated/openapi/zz_generated.openapi.go

    						SchemaProps: spec.SchemaProps{
    							Description: "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.",
    							Type:        []string{"object"},
    							AdditionalProperties: &spec.SchemaOrBool{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
  8. api/openapi-spec/swagger.json

                "type": "string"
              },
              "description": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.",
              "type": "object"
            },
            "detachError": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3.1M bytes
    - Viewed (0)
Back to top