Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for WaitForAttachAndMount (0.31 sec)

  1. pkg/kubelet/volumemanager/volume_manager_fake.go

    	}
    }
    
    // Run is not implemented
    func (f *FakeVolumeManager) Run(sourcesReady config.SourcesReady, stopCh <-chan struct{}) {
    }
    
    // WaitForAttachAndMount is not implemented
    func (f *FakeVolumeManager) WaitForAttachAndMount(ctx context.Context, pod *v1.Pod) error {
    	return nil
    }
    
    // WaitForUnmount is not implemented
    func (f *FakeVolumeManager) WaitForUnmount(ctx context.Context, pod *v1.Pod) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_volumes_test.go

    		err := kubelet.volumeManager.WaitForAttachAndMount(ctx, pod)
    		delta := time.Since(start)
    		// the standard timeout is 2 minutes, so if it's just a few seconds we know that the context timeout was the cause
    		assert.Lessf(t, delta, 10*time.Second, "WaitForAttachAndMount should timeout when the context is cancelled")
    		assert.ErrorIs(t, err, context.DeadlineExceeded)
    		cancel()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/volume_manager_test.go

    			// Fake node status update
    			go simulateVolumeInUseUpdate(
    				v1.UniqueVolumeName(node.Status.VolumesAttached[0].Name),
    				stopCh,
    				manager)
    
    			err = manager.WaitForAttachAndMount(context.Background(), pod)
    			if err != nil && !test.expectError {
    				t.Errorf("Expected success: %v", err)
    			}
    			if err == nil && test.expectError {
    				t.Errorf("Expected error, got none")
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/volume_manager.go

    	// WaitForAttachAndMount processes the volumes referenced in the specified
    	// pod and blocks until they are all attached and mounted (reflected in
    	// actual state of the world).
    	// An error is returned if all volumes are not attached and mounted within
    	// the duration defined in podAttachAndMountTimeout.
    	WaitForAttachAndMount(ctx context.Context, pod *v1.Pod) error
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet.go

    		klog.ErrorS(err, "Unable to make pod data directories for pod", "pod", klog.KObj(pod))
    		return false, err
    	}
    
    	// Wait for volumes to attach/mount
    	if err := kl.volumeManager.WaitForAttachAndMount(ctx, pod); err != nil {
    		if !wait.Interrupted(err) {
    			kl.recorder.Eventf(pod, v1.EventTypeWarning, events.FailedMountVolume, "Unable to attach or mount volumes: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top