Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for seenNode (0.08 sec)

  1. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    		t.Run(test.name, func(t *testing.T) {
    			node := v1.Node{Status: v1.NodeStatus{Capacity: makeResources(10, 20, 32, 5, 20, 5), Allocatable: makeAllocatableResources(10, 20, 32, 5, 20, 5)}}
    			test.nodeInfo.SetNode(&node)
    
    			if test.args.ScoringStrategy == nil {
    				test.args.ScoringStrategy = defaultScoringStrategy
    			}
    
    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/devicemanager/manager_test.go

    				// has no resource1 and two of resource2
    				v1.ResourceName(resourceName2): *resource.NewQuantity(int64(2), resource.DecimalSI),
    			},
    		},
    	}
    	nodeInfo := &schedulerframework.NodeInfo{}
    	nodeInfo.SetNode(cachedNode)
    
    	testManager.UpdatePluginResources(nodeInfo, &lifecycle.PodAdmitAttributes{Pod: pod})
    
    	allocatableScalarResources := nodeInfo.Allocatable.ScalarResources
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
Back to top