Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for MakeNode (0.13 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/jit/tests/device_compiler_test_helper.cc

      *graph.mutable_library()->add_function() = make_test_fn;
      *graph.add_node() = MakeNode("a", "Placeholder", {},
                                   {{"dtype", DT_FLOAT}, {"shape", input_shape}});
      *graph.add_node() = MakeNode("b", "Placeholder", {},
                                   {{"dtype", DT_FLOAT}, {"shape", input_shape}});
      *graph.add_node() = MakeNode("c", "Placeholder", {},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go

    			newNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Obj(),
    			expectedHint: framework.Queue,
    		},
    		{
    			name:         "add a new node without matched topologyKey",
    			pod:          st.MakePod().Name("p").PodAffinityIn("service", "region", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(),
    			newNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    			requestedPod: st.MakePod().
    				Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "5000"}).
    				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": "6000", "memory": "10000"}).Obj(),
    			},
    			existingPods: []*v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/nodename/node_name_test.go

    		{
    			pod:  &v1.Pod{},
    			node: &v1.Node{},
    			name: "no host specified",
    		},
    		{
    			pod:  st.MakePod().Node("foo").Obj(),
    			node: st.MakeNode().Name("foo").Obj(),
    			name: "host matches",
    		},
    		{
    			pod:        st.MakePod().Node("bar").Obj(),
    			node:       st.MakeNode().Name("foo").Obj(),
    			name:       "host doesn't match",
    			wantStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable, ErrReason),
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    				st.MakePod().Name("p2").UID("p2").Namespace(v1.NamespaceDefault).Node("node2").Obj(),
    			},
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(nodeRes).Obj(),
    				st.MakeNode().Name("node2").Capacity(nodeRes).Obj(),
    				st.MakeNode().Name("node3").Capacity(nodeRes).Obj(),
    				st.MakeNode().Name("node4").Capacity(nodeRes).Obj(),
    			},
    			filteredNodesStatuses: framework.NodeToStatusMap{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top