Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for MakeNode (0.28 sec)

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

    			name:         "nothing scheduled, nothing requested (default - least requested nodes have priority)",
    			requestedPod: st.MakePod().Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    			},
    			existingPods: []*v1.Pod{
    				st.MakePod().Node("node1").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/plugin_test.go

    			pod: st.MakePod().Name("p").SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				Obj(),
    			oldNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Obj(),
    			newNode:      st.MakeNode().Name("node-a").Label("zone", "zone2").Obj(),
    			expectedHint: framework.Queue,
    		},
    		{
    			name: "node that doesn't match topologySpreadConstraints updates non-related label",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 17 06:30:53 UTC 2023
    - 13K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    				0,
    			},
    		},
    		{
    			name: "local volumes with close capacity are preferred",
    			pod:  makePod("pod-a").withPVCVolume("pvc-a", "").Pod,
    			nodes: []*v1.Node{
    				makeNode("node-a").Node,
    				makeNode("node-b").Node,
    				makeNode("node-c").Node,
    			},
    			pvcs: []*v1.PersistentVolumeClaim{
    				makePVC("pvc-a", waitSC.Name).withRequestStorage(resource.MustParse("50Gi")).PersistentVolumeClaim,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/balanced_allocation_test.go

    			// CPU Fraction: 0 / 4000 = 0 %
    			// Memory Fraction: 0 / 10000 = 0%
    			// Node2 Score: (1-0) * MaxNodeScore = MaxNodeScore
    			pod:          st.MakePod().Obj(),
    			nodes:        []*v1.Node{makeNode("node1", 4000, 10000, nil), makeNode("node2", 4000, 10000, nil)},
    			expectedList: []framework.NodeScore{{Name: "node1", Score: framework.MaxNodeScore}, {Name: "node2", Score: framework.MaxNodeScore}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  5. pkg/scheduler/eventhandlers_test.go

    	}{
    		{
    			name:       "no specific changed applied",
    			newNode:    st.MakeNode().Unschedulable(false).Obj(),
    			oldNode:    st.MakeNode().Unschedulable(false).Obj(),
    			wantEvents: nil,
    		},
    		{
    			name:       "only node spec unavailable changed",
    			newNode:    st.MakeNode().Unschedulable(false).Obj(),
    			oldNode:    st.MakeNode().Unschedulable(true).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 10 14:38:54 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go

    			name:         "nothing scheduled, nothing requested",
    			requestedPod: st.MakePod().Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    			},
    			existingPods:   nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 18.8K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/noderesources/most_allocated_test.go

    			// Node2 Score: (0 + 0) / 2 = 0
    			name:         "nothing scheduled, nothing requested",
    			requestedPod: st.MakePod().Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    			},
    			existingPods:   nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 16K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity_test.go

    			pod:          podWithNodeAffinity.Obj(),
    			newObj:       st.MakeNode().Label("foo", "bar").Obj(),
    			expectedHint: framework.Queue,
    		},
    		"skip-unrelated-changes": {
    			args:         &config.NodeAffinityArgs{},
    			pod:          podWithNodeAffinity.Obj(),
    			oldObj:       st.MakeNode().Obj(),
    			newObj:       st.MakeNode().Capacity(nil).Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 38.7K bytes
    - Viewed (0)
  9. pkg/proxy/healthcheck/healthcheck_test.go

    	// Should return 200 "OK" irrespective of node syncs
    	hs.SyncNode(makeNode(tweakTainted("other")))
    	testHTTPHandler(hsTest, http.StatusOK, t)
    
    	// Should return 200 "OK" irrespective of node syncs
    	hs.SyncNode(makeNode(tweakTainted(ToBeDeletedTaint)))
    	testHTTPHandler(hsTest, http.StatusOK, t)
    
    	// Should return 200 "OK" irrespective of node syncs
    	hs.SyncNode(makeNode(tweakTainted("other")))
    	testHTTPHandler(hsTest, http.StatusOK, t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/preemption/preemption_test.go

    		initPods           []*v1.Pod
    		numViolatingVictim int
    		expected           [][]Candidate
    	}{
    		{
    			name: "no pdb violation",
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(veryLargeRes).Obj(),
    				st.MakeNode().Name("node2").Capacity(veryLargeRes).Obj(),
    			},
    			testPods: []*v1.Pod{
    				st.MakePod().Name("p").UID("p").Priority(highPriority).Obj(),
    			},
    			initPods: []*v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top