Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 79 for makeOld (0.17 sec)

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

    		"skip-queue-on-disable-inplace-pod-vertical-scaling": {
    			pod:                             st.MakePod().Name("pod1").Req(map[v1.ResourceName]string{v1.ResourceCPU: "1"}).Obj(),
    			oldObj:                          st.MakePod().Name("pod2").Req(map[v1.ResourceName]string{v1.ResourceCPU: "2"}).Node("fake").Obj(),
    			newObj:                          st.MakePod().Name("pod2").Req(map[v1.ResourceName]string{v1.ResourceCPU: "1"}).Node("fake").Obj(),
    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/scheduler/framework/plugins/queuesort/priority_sort_test.go

    				PodInfo: mustNewPodInfo(t, st.MakePod().Priority(lowPriority).Obj()),
    			},
    			p2: &framework.QueuedPodInfo{
    				PodInfo: mustNewPodInfo(t, st.MakePod().Priority(highPriority).Obj()),
    			},
    			expected: false, // p2 should be ahead of p1 in the queue
    		},
    		{
    			name: "p1.priority greater than p2.priority",
    			p1: &framework.QueuedPodInfo{
    				PodInfo: mustNewPodInfo(t, st.MakePod().Priority(highPriority).Obj()),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 12 14:11:04 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/policy_static_test.go

    			stAssignments: state.ContainerCPUAssignments{
    				"fakePod": map[string]cpuset.CPUSet{
    					"fakeContainer100": cpuset.New(2, 3, 6, 7),
    				},
    			},
    			stDefaultCPUSet: cpuset.New(0, 1, 4, 5),
    			pod:             makePod("fakePod", "fakeContainer3", "2000m", "2000m"),
    			expErr:          nil,
    			expCPUAlloc:     true,
    			expCSet:         cpuset.New(1, 5),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/balanced_allocation_test.go

    			pod:          st.MakePod().Obj(),
    			nodes:        []*v1.Node{makeNode("node1", 4000, 10000, nil), makeNode("node2", 4000, 10000, nil)},
    			expectedList: []framework.NodeScore{{Name: "node2", Score: framework.MaxNodeScore}, {Name: "node2", Score: framework.MaxNodeScore}},
    			name:         "no resources requested, pods without container scheduled",
    			pods: []*v1.Pod{
    				st.MakePod().Node("node1").Labels(labels2).Obj(),
    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/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go

    					{
    						Priority:                   4,
    						ShutdownGracePeriodSeconds: 40,
    					},
    				},
    				pods: []*v1.Pod{
    					makePod("pod-0", 0, nil),
    					makePod("pod-1", 1, nil),
    					makePod("pod-2", 2, nil),
    					makePod("pod-3", 3, nil),
    					makePod("pod-4", 4, nil),
    					makePod("pod-5", 5, nil),
    				},
    			},
    			want: []podShutdownGroup{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/noderesources/most_allocated_test.go

    				st.MakePod().Node("node1").Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "0"}).Obj(),
    				st.MakePod().Node("node2").Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "0"}).Obj(),
    				st.MakePod().Node("node2").Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "5000"}).Obj(),
    			},
    			expectedScores: []framework.NodeScore{{Name: "node1", Score: 30}, {Name: "node2", Score: 42}},
    			resources:      defaultResources,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 16K bytes
    - Viewed (0)
  7. pkg/scheduler/extender_test.go

    			podsInNodeList: []*v1.Pod{
    				st.MakePod().Name("pod1").UID("uid1").Obj(),
    				st.MakePod().Name("pod2").UID("uid2").Obj(),
    				st.MakePod().Name("pod3").UID("uid3").Obj(),
    				st.MakePod().Name("pod4").UID("uid4").Obj(),
    			},
    			nodeInfos: nil,
    			want: map[string]*extenderv1.Victims{
    				"node1": {
    					Pods: []*v1.Pod{
    						st.MakePod().Name("pod1").UID("uid1").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  8. pkg/controller/podgc/gc_controller_test.go

    			delay: 2 * quarantineTime,
    			pods: []*v1.Pod{
    				makePod("a", "existing1", v1.PodRunning),
    				makePod("b", "existing2", v1.PodFailed),
    				makePod("c", "existing2", v1.PodSucceeded),
    			},
    			itemsInQueue: 2,
    		},
    		{
    			name:  "no nodes",
    			delay: 2 * quarantineTime,
    			pods: []*v1.Pod{
    				makePod("a", "deleted", v1.PodFailed),
    				makePod("b", "deleted", v1.PodSucceeded),
    			},
    			itemsInQueue:    1,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go

    func TestCSILimits(t *testing.T) {
    	runningPod := st.MakePod().PVC("csi-ebs.csi.aws.com-3").Obj()
    	pendingVolumePod := st.MakePod().PVC("csi-4").Obj()
    
    	// Different pod than pendingVolumePod, but using the same unbound PVC
    	unboundPVCPod2 := st.MakePod().PVC("csi-4").Obj()
    
    	missingPVPod := st.MakePod().PVC("csi-6").Obj()
    	noSCPVCPod := st.MakePod().PVC("csi-5").Obj()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    	}{
    		{
    			name: "pod has not pvcs",
    			pod:  makePod("pod-a").Pod,
    			nodes: []*v1.Node{
    				makeNode("node-a").Node,
    			},
    			wantPreFilterStatus: framework.NewStatus(framework.Skip),
    			wantFilterStatus: []*framework.Status{
    				nil,
    			},
    			wantPreScoreStatus: framework.NewStatus(framework.Skip),
    		},
    		{
    			name: "all bound",
    			pod:  makePod("pod-a").withPVCVolume("pvc-a", "").Pod,
    			nodes: []*v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
Back to top