Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for ActualStateOfworld (0.44 sec)

  1. pkg/kubelet/volumemanager/cache/actual_state_of_world.go

    // contains kubelet volume manager specific state.
    type ActualStateOfWorld interface {
    	// ActualStateOfWorld must implement the methods required to allow
    	// operationexecutor to interact with it.
    	operationexecutor.ActualStateOfWorldMounterUpdater
    
    	// ActualStateOfWorld must implement the methods required to allow
    	// operationexecutor to interact with it.
    	operationexecutor.ActualStateOfWorldAttacherUpdater
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 45.8K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/cache/actual_state_of_world.go

    func (s AttachState) String() string {
    	return []string{"Attached", "Uncertain", "Detached"}[s]
    }
    
    // NewActualStateOfWorld returns a new instance of ActualStateOfWorld.
    func NewActualStateOfWorld(volumePluginMgr *volume.VolumePluginMgr) ActualStateOfWorld {
    	return &actualStateOfWorld{
    		attachedVolumes:        make(map[v1.UniqueVolumeName]attachedVolume),
    		nodesToUpdateStatusFor: make(map[types.NodeName]nodeToUpdateStatusFor),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/cache/actual_state_of_world_test.go

    	tests := []struct {
    		name           string
    		opCallback     func(asw ActualStateOfWorld, volumeOpts operationexecutor.MarkVolumeOpts) error
    		verifyCallback func(asw ActualStateOfWorld, volumeOpts operationexecutor.MarkVolumeOpts) error
    	}{
    		{
    			name: "marking volume mounted should remove volume from found during reconstruction",
    			opCallback: func(asw ActualStateOfWorld, volumeOpts operationexecutor.MarkVolumeOpts) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/reconciler/reconciler.go

    					continue
    				}
    			}
    
    			// Because the detach operation updates the ActualStateOfWorld before
    			// marking itself complete, it's possible for the volume to be removed
    			// from the ActualStateOfWorld between the GetAttachedVolumes() check
    			// and the IsOperationSafeToRetry() check above.
    			// Check the ActualStateOfWorld again to avoid issuing an unnecessary
    			// detach.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 21:02:38 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    	controllerAttachDetachEnabled bool,
    	loopSleepDuration time.Duration,
    	waitForAttachTimeout time.Duration,
    	nodeName types.NodeName,
    	desiredStateOfWorld cache.DesiredStateOfWorld,
    	actualStateOfWorld cache.ActualStateOfWorld,
    	populatorHasAddedPods func() bool,
    	operationExecutor operationexecutor.OperationExecutor,
    	mounter mount.Interface,
    	hostutil hostutil.HostUtils,
    	volumePluginMgr *volumepkg.VolumePluginMgr,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/volume_manager.go

    		vm.desiredStateOfWorld,
    		vm.actualStateOfWorld,
    		kubeContainerRuntime,
    		csiMigratedPluginManager,
    		intreeToCSITranslator,
    		volumePluginMgr)
    	vm.reconciler = reconciler.NewReconciler(
    		kubeClient,
    		controllerAttachDetachEnabled,
    		reconcilerLoopSleepPeriod,
    		waitForAttachTimeout,
    		nodeName,
    		vm.desiredStateOfWorld,
    		vm.actualStateOfWorld,
    		vm.desiredStateOfWorldPopulator.HasAddedPods,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. pkg/volume/util/operationexecutor/operation_executor.go

    	// VerifyVolumesAreAttached verifies volumes being used in entire cluster and if they are still attached to the node
    	// If any volume is not attached right now, it will update actual state of world to reflect that.
    	VerifyVolumesAreAttached(volumesToVerify map[types.NodeName][]AttachedVolume, actualStateOfWorld ActualStateOfWorldAttacherUpdater)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    			verifyFunc: func(rcInstance *reconciler, fakePlugin *volumetesting.FakeVolumePlugin) error {
    				mountedPods := rcInstance.actualStateOfWorld.GetMountedVolumes()
    				if len(mountedPods) != 0 {
    					return fmt.Errorf("expected 0 certain pods in asw got %d", len(mountedPods))
    				}
    				allPods := rcInstance.actualStateOfWorld.GetAllMountedVolumes()
    				if len(allPods) != 2 {
    					return fmt.Errorf("expected 2 uncertain pods in asw got %d", len(allPods))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go

    	kubeClient clientset.Interface,
    	loopSleepDuration time.Duration,
    	podManager PodManager,
    	podStateProvider PodStateProvider,
    	desiredStateOfWorld cache.DesiredStateOfWorld,
    	actualStateOfWorld cache.ActualStateOfWorld,
    	kubeContainerRuntime kubecontainer.Runtime,
    	csiMigratedPluginManager csimigration.PluginManager,
    	intreeToCSITranslator csimigration.InTreeToCSITranslator,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/attach_detach_controller.go

    	// storage providers for the "true" state of the world.
    	actualStateOfWorld cache.ActualStateOfWorld
    
    	// attacherDetacher is used to start asynchronous attach and operations
    	attacherDetacher operationexecutor.OperationExecutor
    
    	// reconciler is used to run an asynchronous periodic loop to reconcile the
    	// desiredStateOfWorld with the actualStateOfWorld by triggering attach
    	// detach operations using the attacherDetacher.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top