Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for makeOld (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/kube/kclient/crdwatcher_test.go

    			// Happened sync
    			vsCalls.Inc()
    		}
    	}()
    	clienttest.MakeCRD(t, c, gvr.VirtualService)
    	c.RunAndWait(stop)
    	assert.EventuallyEqual(t, vsCalls.Load, 1)
    }
    
    func TestCRDWatcher(t *testing.T) {
    	stop := test.NewStop(t)
    	c := kube.NewFakeClient()
    
    	clienttest.MakeCRD(t, c, gvr.VirtualService)
    	vsCalls := atomic.NewInt32(0)
    
    	clienttest.MakeCRD(t, c, gvr.GatewayClass)
    
    	ctl := c.CrdWatcher()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/preemption/preemption_test.go

    				st.MakeNode().Name("node2").Capacity(veryLargeRes).Obj(),
    			},
    			testPods: []*v1.Pod{
    				st.MakePod().Name("p").UID("p").Priority(highPriority).Obj(),
    			},
    			initPods: []*v1.Pod{
    				st.MakePod().Name("p1").UID("p1").Node("node1").Priority(midPriority).Obj(),
    				st.MakePod().Name("p2").UID("p2").Node("node2").Priority(midPriority).Obj(),
    			},
    			expected: [][]Candidate{
    				{
    					&candidate{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/nodeports/node_ports_test.go

    			oldObj:       st.MakePod().Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		"skip-queue-on-non-hostport": {
    			pod:          podWithHostPort.Obj(),
    			oldObj:       st.MakePod().Node("fake-node").Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		"skip-queue-on-unrelated-hostport": {
    			pod:          podWithHostPort.Obj(),
    			oldObj:       st.MakePod().Node("fake-node").HostPort(8081).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 11:02:11 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  8. pkg/scheduler/schedule_one_test.go

    		st.MakeNode().Name("node3").UID("node3").Obj(),
    	}
    	pods := []*v1.Pod{
    		st.MakePod().Name("pod1").UID("pod1").SchedulerName("match-node3").Obj(),
    		st.MakePod().Name("pod2").UID("pod2").SchedulerName("match-node2").Obj(),
    		st.MakePod().Name("pod3").UID("pod3").SchedulerName("match-node2").Obj(),
    		st.MakePod().Name("pod4").UID("pod4").SchedulerName("match-node3").Obj(),
    	}
    	wantBindings := map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  9. pkg/quota/v1/evaluator/core/pods_test.go

    		},
    		{
    			name: "partial pods matching quotaScopeSelector - w/ multiple scopeNames specified",
    			objs: []runtime.Object{
    				makePod("p1", "high-priority", cpu1, api.PodRunning),
    				makePod("p2", "high-priority", cpu1, api.PodSucceeded),
    				makePod("p3", "low-priority", cpu1, api.PodRunning),
    				makePod("p4", "high-priority", nil, api.PodFailed),
    			},
    			quotaScopes: []corev1.ResourceQuotaScope{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/nodename/node_name_test.go

    		wantStatus *framework.Status
    	}{
    		{
    			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",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top