Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewGoRoutineMap (0.5 sec)

  1. pkg/util/goroutinemap/goroutinemap_test.go

    	// exponential backoff).
    	initialOperationWaitTimeLong time.Duration = 500 * time.Millisecond
    )
    
    func Test_NewGoRoutineMap_Positive_SingleOp(t *testing.T) {
    	// Arrange
    	grm := NewGoRoutineMap(false /* exponentialBackOffOnError */)
    	operationName := "operation-name"
    	operation := func() error { return nil }
    
    	// Act
    	err := grm.Run(operationName, operation)
    
    	// Assert
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 14.9K bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/operationexecutor/operation_executor.go

    	"k8s.io/kubernetes/pkg/kubelet/pluginmanager/cache"
    	"k8s.io/kubernetes/pkg/util/goroutinemap"
    )
    
    // OperationExecutor defines a set of operations for registering and unregistering
    // a plugin that are executed with a NewGoRoutineMap which
    // prevents more than one operation from being triggered on the same socket path.
    //
    // These operations should be idempotent (for example, RegisterPlugin should
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. pkg/util/goroutinemap/goroutinemap.go

    	// IsOperationPending returns true if the operation is pending (currently
    	// running), otherwise returns false.
    	IsOperationPending(operationName string) bool
    }
    
    // NewGoRoutineMap returns a new instance of GoRoutineMap.
    func NewGoRoutineMap(exponentialBackOffOnError bool) GoRoutineMap {
    	g := &goRoutineMap{
    		operations:                make(map[string]operation),
    		exponentialBackOffOnError: exponentialBackOffOnError,
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  4. pkg/controller/volume/persistentvolume/pv_controller_base.go

    		kubeClient:                    p.KubeClient,
    		eventBroadcaster:              eventBroadcaster,
    		eventRecorder:                 eventRecorder,
    		runningOperations:             goroutinemap.NewGoRoutineMap(true /* exponentialBackOffOnError */),
    		enableDynamicProvisioning:     p.EnableDynamicProvisioning,
    		createProvisionedPVRetryCount: createProvisionedPVRetryCount,
    		createProvisionedPVInterval:   createProvisionedPVInterval,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 29.5K bytes
    - Viewed (0)
Back to top