Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for NewOperationExecutor (0.87 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    	asw := cache.NewActualStateOfWorld(nodeName, volumePluginMgr)
    	kubeClient := createTestClient()
    	fakeRecorder := &record.FakeRecorder{}
    	fakeHandler := volumetesting.NewBlockVolumePathHandler()
    	oex := operationexecutor.NewOperationExecutor(operationexecutor.NewOperationGenerator(
    		kubeClient,
    		volumePluginMgr,
    		fakeRecorder,
    		fakeHandler,
    	))
    	reconciler := NewReconciler(
    		kubeClient,
    		false, /* controllerAttachDetachEnabled */
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/reconciler/reconciler_test.go

    func Test_Run_Positive_DoNothing(t *testing.T) {
    	defer cleanup(t)
    
    	dsw := cache.NewDesiredStateOfWorld()
    	asw := cache.NewActualStateOfWorld()
    	fakeRecorder := &record.FakeRecorder{}
    	oex := operationexecutor.NewOperationExecutor(operationexecutor.NewOperationGenerator(
    		fakeRecorder,
    	))
    	reconciler := NewReconciler(
    		oex,
    		reconcilerLoopSleepDuration,
    		dsw,
    		asw,
    	)
    	// Act
    	runReconciler(reconciler)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. pkg/kubelet/pluginmanager/operationexecutor/operation_executor.go

    	// It then updates the actual state of the world to reflect that.
    	UnregisterPlugin(pluginInfo cache.PluginInfo, actualStateOfWorld ActualStateOfWorldUpdater) error
    }
    
    // NewOperationExecutor returns a new instance of OperationExecutor.
    func NewOperationExecutor(
    	operationGenerator OperationGenerator) OperationExecutor {
    
    	return &operationExecutor{
    		pendingOperations:  goroutinemap.NewGoRoutineMap(true /* exponentialBackOffOnError */),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    	fakeKubeClient := controllervolumetesting.CreateTestClient()
    	fakeRecorder := &record.FakeRecorder{}
    	fakeHandler := volumetesting.NewBlockVolumePathHandler()
    	ad := operationexecutor.NewOperationExecutor(operationexecutor.NewOperationGenerator(
    		fakeKubeClient,
    		volumePluginMgr,
    		fakeRecorder,
    		fakeHandler))
    	informerFactory := informers.NewSharedInformerFactory(fakeKubeClient, controller.NoResyncPeriodFunc())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:14 UTC 2024
    - 72.8K bytes
    - Viewed (0)
  5. pkg/kubelet/pluginmanager/plugin_manager.go

    	sockDir string,
    	recorder record.EventRecorder) PluginManager {
    	asw := cache.NewActualStateOfWorld()
    	dsw := cache.NewDesiredStateOfWorld()
    	reconciler := reconciler.NewReconciler(
    		operationexecutor.NewOperationExecutor(
    			operationexecutor.NewOperationGenerator(
    				recorder,
    			),
    		),
    		loopSleepDuration,
    		dsw,
    		asw,
    	)
    
    	pm := &pluginManager{
    		desiredStateOfWorldPopulator: pluginwatcher.NewWatcher(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 01 05:56:33 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  6. pkg/kubelet/pluginmanager/operationexecutor/operation_executor_test.go

    			break loop
    		}
    	}
    	return false
    }
    
    func setup() (chan interface{}, chan interface{}, OperationExecutor) {
    	ch, quit := make(chan interface{}), make(chan interface{})
    	return ch, quit, NewOperationExecutor(newFakeOperationGenerator(ch, quit))
    }
    
    // This function starts by writing to ch and blocks on the quit channel
    // until it is closed by the currently running test
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  7. pkg/volume/util/operationexecutor/operation_executor.go

    }
    
    // NewOperationExecutor returns a new instance of OperationExecutor.
    func NewOperationExecutor(
    	operationGenerator OperationGenerator) OperationExecutor {
    
    	return &operationExecutor{
    		pendingOperations: nestedpendingoperations.NewNestedPendingOperations(
    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/volume_manager.go

    		desiredStateOfWorld: cache.NewDesiredStateOfWorld(volumePluginMgr, seLinuxTranslator),
    		actualStateOfWorld:  cache.NewActualStateOfWorld(nodeName, volumePluginMgr),
    		operationExecutor: operationexecutor.NewOperationExecutor(operationexecutor.NewOperationGenerator(
    			kubeClient,
    			volumePluginMgr,
    			recorder,
    			blockVolumePathHandler)),
    	}
    
    	intreeToCSITranslator := csitrans.New()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. pkg/volume/util/operationexecutor/operation_executor_test.go

    			break loop
    		}
    	}
    	return false
    }
    
    func setup() (chan interface{}, chan interface{}, OperationExecutor) {
    	ch, quit := make(chan interface{}), make(chan interface{})
    	return ch, quit, NewOperationExecutor(newFakeOperationGenerator(ch, quit))
    }
    
    // This function starts by writing to ch and blocks on the quit channel
    // until it is closed by the currently running test
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/attach_detach_controller.go

    	adc.desiredStateOfWorld = cache.NewDesiredStateOfWorld(&adc.volumePluginMgr)
    	adc.actualStateOfWorld = cache.NewActualStateOfWorld(&adc.volumePluginMgr)
    	adc.attacherDetacher =
    		operationexecutor.NewOperationExecutor(operationexecutor.NewOperationGenerator(
    			kubeClient,
    			&adc.volumePluginMgr,
    			recorder,
    			blkutil))
    	adc.nodeStatusUpdater = statusupdater.NewNodeStatusUpdater(
    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