Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for OperationFunc (0.17 sec)

  1. pkg/volume/util/nestedpendingoperations/nestedpendingoperations_test.go

    	volume2Name := v1.UniqueVolumeName("volume2-name")
    
    	// Act
    	err1 := grm.Run(volume1Name, EmptyUniquePodName, EmptyNodeName, volumetypes.GeneratedOperations{OperationFunc: noopFunc})
    	err2 := grm.Run(volume2Name, EmptyUniquePodName, EmptyNodeName, volumetypes.GeneratedOperations{OperationFunc: noopFunc})
    
    	// Assert
    	if err1 != nil {
    		t.Fatalf("NestedPendingOperations %q failed. Expected: <no error> Actual: <%v>", volume1Name, err1)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 01:29:17 UTC 2022
    - 36.1K bytes
    - Viewed (0)
  2. pkg/volume/util/operationexecutor/operation_executor_test.go

    	opFunc := func() volumetypes.OperationContext {
    		startOperationAndBlock(fopg.ch, fopg.quit)
    		return volumetypes.NewOperationContext(nil, nil, false)
    	}
    	return volumetypes.GeneratedOperations{
    		OperationFunc: opFunc,
    	}
    }
    func (fopg *fakeOperationGenerator) GenerateUnmountVolumeFunc(volumeToUnmount MountedVolume, actualStateOfWorld ActualStateOfWorldMounterUpdater, podsDir string) (volumetypes.GeneratedOperations, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  3. pkg/util/goroutinemap/goroutinemap.go

    		// Handle unhandled panics (very unlikely)
    		defer k8sRuntime.HandleCrash()
    		// Handle completion of and error, if any, from operationFunc()
    		defer grm.operationComplete(operationName, &err)
    		// Handle panic, if any, from operationFunc()
    		defer k8sRuntime.RecoverFromPanic(&err)
    		return operationFunc()
    	}()
    
    	return nil
    }
    
    // operationComplete handles the completion of a goroutine run in the
    // goRoutineMap.
    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/volume/util/types/types.go

    			Migrated: &context.Migrated,
    		}
    		defer o.CompleteFunc(c)
    	}
    	if o.EventRecorderFunc != nil {
    		defer o.EventRecorderFunc(&eventErr)
    	}
    	// Handle panic, if any, from operationFunc()
    	defer runtime.RecoverFromPanic(&detailedErr)
    
    	context = o.OperationFunc()
    	return context.EventErr, context.DetailedErr
    }
    
    // FailedPrecondition error indicates CSI operation returned failed precondition
    // error
    type FailedPrecondition struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 17:23:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. pkg/volume/util/operationexecutor/operation_generator.go

    		return volumetypes.NewOperationContext(nil, nil, false)
    	}
    
    	return volumetypes.GeneratedOperations{
    		OperationName:     "verify_volumes_are_attached_per_node",
    		OperationFunc:     volumesAreAttachedFunc,
    		CompleteFunc:      util.OperationCompleteHook(util.GetFullQualifiedPluginNameForVolume("<n/a>", nil), "verify_volumes_are_attached_per_node"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  6. pkg/volume/util/operationexecutor/fakegenerator.go

    	if _, ok := f.calledFuncs[name]; ok {
    		f.calledFuncs[name]++
    	}
    	ops := volumetypes.GeneratedOperations{
    		OperationName: name,
    		OperationFunc: f.opFunc,
    	}
    	return ops
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. pkg/volume/util/nestedpendingoperations/nestedpendingoperations.go

    			})
    	}
    
    	go func() (eventErr, detailedErr error) {
    		// Handle unhandled panics (very unlikely)
    		defer k8sRuntime.HandleCrash()
    		// Handle completion of and error, if any, from operationFunc()
    		defer grm.operationComplete(opKey, &detailedErr)
    		return generatedOperations.Run()
    	}()
    
    	return nil
    }
    func (grm *nestedPendingOperations) IsOperationSafeToRetry(
    	volumeName v1.UniqueVolumeName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 01:29:17 UTC 2022
    - 12.6K bytes
    - Viewed (0)
Back to top