- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for MakeNode (0.17 sec)
-
pkg/scheduler/scheduler_test.go
testSchedulerProfile2 = "test-scheduler-profile-2" testSchedulerProfile3 = "test-scheduler-profile-3" ) nodes := []runtime.Object{ st.MakeNode().Name("node1").UID("node1").Obj(), st.MakeNode().Name("node2").UID("node2").Obj(), st.MakeNode().Name("node3").UID("node3").Obj(), } cases := []struct { name string profiles []schedulerapi.KubeSchedulerProfile
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 42K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/binder_test.go
topoMismatchClass = "topoMismatchClass" // nodes objects node1 = makeNode("node1").withLabel(nodeLabelKey, "node1").Node node2 = makeNode("node2").withLabel(nodeLabelKey, "node2").Node node1NoLabels = makeNode("node1").Node node1Zone1 = makeNode("node1").withLabel("topology.gke.io/zone", "us-east-1").Node node1Zone2 = makeNode("node1").withLabel("topology.gke.io/zone", "us-east-2").Node // csiNode objects
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 82.8K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
PodInfo: mustNewPodInfo(st.MakePod().Name("pod1").Namespace("ns1").UID("1").Obj()), }, event: NodeAdd, oldObj: nil, newObj: st.MakeNode().Obj(), expected: queueSkip, expectedExecutionCount: 0, queueingHintMap: QueueingHintMapPerProfile{ "": { // no queueing hint function for NodeAdd. AssignedPodAdd: {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0) -
pkg/scheduler/testing/wrappers.go
func (p *PodWrapper) Overhead(rl v1.ResourceList) *PodWrapper { p.Spec.Overhead = rl return p } // NodeWrapper wraps a Node inside. type NodeWrapper struct{ v1.Node } // MakeNode creates a Node wrapper. func MakeNode() *NodeWrapper { w := &NodeWrapper{v1.Node{}} return w.Capacity(nil) } // Obj returns the inner Node. func (n *NodeWrapper) Obj() *v1.Node { return &n.Node }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 42.1K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
}{{ expectError: false, node: makeNode("nil-pod-cidr", nil), }, { expectError: false, node: makeNode("empty-pod-cidr", []string{}), }, { expectError: false, node: makeNode("single-pod-cidr-4", []string{"192.168.0.0/16"}), }, { expectError: false, node: makeNode("single-pod-cidr-6", []string{"2000::/10"}), }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go
PodResourceClaims(v1.PodResourceClaim{Name: resourceName2, Source: v1.ClaimSource{ResourceClaimName: &claimName2}}). Obj() workerNode = &st.MakeNode().Name("worker").Label("kubernetes.io/hostname", "worker").Node workerNodeSlice = st.MakeResourceSlice("worker", "some-driver").NamedResourcesInstances("instance-1").Obj()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 61.9K bytes - Viewed (0) -
pkg/volume/csi/csi_attacher_test.go
expectedAttachID: getAttachmentName("test-vol", "attachable", "fakeNode"), expectError: false, }, { name: "failed attach with vol source", makeAttachment: func() *storage.VolumeAttachment { testAttachID := getAttachmentName("test-vol", "attachable", "fakeNode") successfulAttachment := makeTestAttachment(testAttachID, "fakeNode", "volSrc01") successfulAttachment.Status.Attached = true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 58.1K bytes - Viewed (0) -
pkg/volume/csi/csi_plugin_test.go
host = volumetest.NewFakeVolumeHostWithCSINodeName(t, tmpDir, client, ProbeVolumePlugins(), "fakeNode", csiDriverLister, nil, ) case kubeletVolumeHostType: host = volumetest.NewFakeKubeletVolumeHostWithCSINodeName(t, tmpDir, client, ProbeVolumePlugins(), "fakeNode", csiDriverLister, volumeAttachmentLister, ) case attachDetachVolumeHostType:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.8K bytes - Viewed (0) -
pilot/pkg/autoregistration/controller_test.go
// stop1 should be killed early, as part of test if !stopped1 { close(stop1) } }() defer close(stop2) go c1.Run(stop1) go c2.Run(stop2) go store.Run(stop2) n := fakeNode("reg1", "zone1", "subzone1") var p1conn1, p1conn2 *fakeConn p := fakeProxy("1.2.3.4", wgA, "nw1", "sa-a") p.Locality = n.Locality var p2conn1 *fakeConn p2 := fakeProxy("1.2.3.4", wgA, "nw2", "sa-a")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 16 00:00:36 UTC 2024 - 31.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go
prefix: "/pods", pred: storage.SelectionPredicate{ Field: fields.OneTermEqualSelector("spec.nodeName", "fakeNode"), Label: labels.Everything(), Limit: 5, }, rv: list.ResourceVersion, rvMatch: metav1.ResourceVersionMatchNotOlderThan, expectedOut: []example.Pod{*preset[0]}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 91.4K bytes - Viewed (0)