Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DynamicProvisions (0.13 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/binder.go

    	}()
    
    	var (
    		staticBindings    []*BindingInfo
    		dynamicProvisions []*v1.PersistentVolumeClaim
    	)
    	defer func() {
    		// Although we do not distinguish nil from empty in this function, for
    		// easier testing, we normalize empty to nil.
    		if len(staticBindings) == 0 {
    			staticBindings = nil
    		}
    		if len(dynamicProvisions) == 0 {
    			dynamicProvisions = nil
    		}
    		podVolumes.StaticBindings = staticBindings
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    	var (
    		bindings          []*BindingInfo
    		provisionedClaims []*v1.PersistentVolumeClaim
    	)
    	if podVolumes != nil {
    		bindings = podVolumes.StaticBindings
    		provisionedClaims = podVolumes.DynamicProvisions
    	}
    	if aLen, eLen := len(bindings), len(expectedBindings); aLen != eLen {
    		t.Errorf("expected %v bindings, got %v", eLen, aLen)
    	} else if expectedBindings == nil && bindings != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top