- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 32 for MakeNode (0.12 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
pkg/scheduler/schedule_one_test.go
return nil } func TestSchedulerMultipleProfilesScheduling(t *testing.T) { nodes := []runtime.Object{ st.MakeNode().Name("node1").UID("node1").Obj(), st.MakeNode().Name("node2").UID("node2").Obj(), st.MakeNode().Name("node3").UID("node3").Obj(), } pods := []*v1.Pod{ st.MakePod().Name("pod1").UID("pod1").SchedulerName("match-node3").Obj(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:20:55 UTC 2024 - 128.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/test_utils.go
"k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/component-helpers/storage/volume" "k8s.io/utils/ptr" ) type nodeBuilder struct { *v1.Node } func makeNode(name string) nodeBuilder { return nodeBuilder{Node: &v1.Node{ ObjectMeta: metav1.ObjectMeta{ Name: name, Labels: map[string]string{ v1.LabelHostname: name, }, }, }} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 4.9K bytes - Viewed (0)