Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,095 for pod6 (0.06 sec)

  1. pkg/controller/job/job_controller_test.go

    						Failed: []types.UID{"a", "b"},
    					},
    				},
    			},
    			pods: func() []*v1.Pod {
    				pods := make([]*v1.Pod, 500)
    				for i := range pods {
    					pods[i] = buildPod().uid(strconv.Itoa(i)).phase(v1.PodSucceeded).trackingFinalizer().Pod
    				}
    				pods = append(pods, buildPod().uid("b").phase(v1.PodFailed).trackingFinalizer().Pod)
    				return pods
    			}(),
    			wantRmFinalizers: 499,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  2. plugin/pkg/admission/serviceaccount/admission_test.go

    	// clear generated volume names
    	for i := range pod.Spec.Volumes {
    		if len(pod.Spec.Volumes[i].Name) > 0 {
    			pod.Spec.Volumes[i].Name = "cleared"
    		}
    	}
    	for i := range pod.Spec.Containers[0].VolumeMounts {
    		if len(pod.Spec.Containers[0].VolumeMounts[i].Name) > 0 {
    			pod.Spec.Containers[0].VolumeMounts[i].Name = "cleared"
    		}
    	}
    
    	if !reflect.DeepEqual(expectedVolumes, pod.Spec.Volumes) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/cache/cache_test.go

    	}
    
    	// Create a few pods for tests.
    	var pods []*v1.Pod
    	for i := 0; i < 20; i++ {
    		pod := st.MakePod().Name(fmt.Sprintf("test-pod%v", i)).Namespace("test-ns").UID(fmt.Sprintf("test-puid%v", i)).
    			Node(fmt.Sprintf("test-node%v", i%10)).Obj()
    		pods = append(pods, pod)
    	}
    
    	// Create a few pods as updated versions of the above pods.
    	var updatedPods []*v1.Pod
    	for _, p := range pods {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 63.8K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/cache/desired_state_of_world_test.go

    	// Assert
    	if len(pods) != 1 {
    		t.Fatalf("Expected 1 pod, got %d", len(pods))
    	}
    	if pods[0].Name != pod1Name {
    		t.Errorf("Expected pod %s/%s, got %s", pod1Name, pod1Name, pods[0].Name)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  5. pkg/scheduler/internal/queue/scheduling_queue_test.go

    		t.Errorf("Unexpected diff after adding pods (-want, +got):\n%s", diff)
    	}
    	if p, err := q.Pop(logger); err != nil || p.Pod != highPriorityPodInfo.Pod {
    		t.Errorf("Expected: %v after Pop, but got: %v", highPriorityPodInfo.Pod.Name, p.Pod.Name)
    	}
    	if p, err := q.Pop(logger); err != nil || p.Pod != medPriorityPodInfo.Pod {
    		t.Errorf("Expected: %v after Pop, but got: %v", medPriorityPodInfo.Pod.Name, p.Pod.Name)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  6. pkg/kubelet/preemption/preemption.go

    		// subtract the pod from requirements, and transfer the pod from input-pods to pods-to-evicted
    		requirements = requirements.subtract(pods[bestPodIndex])
    		podsToEvict = append(podsToEvict, pods[bestPodIndex])
    		pods[bestPodIndex] = pods[len(pods)-1]
    		pods = pods[:len(pods)-1]
    	}
    	return podsToEvict, nil
    }
    
    type admissionRequirement struct {
    	resourceName v1.ResourceName
    	quantity     int64
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 16:53:19 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  7. pkg/controller/daemon/daemon_controller_test.go

    			gotPods := map[string]bool{}
    			for node, pods := range nodesToDaemonPods {
    				for _, pod := range pods {
    					if pod.Spec.NodeName != node {
    						t.Errorf("pod %v grouped into %v but belongs in %v", pod.Name, node, pod.Spec.NodeName)
    					}
    					gotPods[pod.Name] = true
    				}
    			}
    			for _, pod := range tc.wantedPods {
    				if !gotPods[pod.Name] {
    					t.Errorf("expected pod %v but didn't get it", pod.Name)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    		})
    	}
    	return &v1.Pod{
    		Spec: v1.PodSpec{
    			Containers: containers,
    		},
    	}
    }
    
    func newResourceInitPod(pod *v1.Pod, usage ...framework.Resource) *v1.Pod {
    	pod.Spec.InitContainers = newResourcePod(usage...).Spec.Containers
    	return pod
    }
    
    func newResourceOverheadPod(pod *v1.Pod, overhead v1.ResourceList) *v1.Pod {
    	pod.Spec.Overhead = overhead
    	return 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)
  9. tools/bug-report/pkg/cluster/cluster_test.go

    				},
    			},
    			true,
    		},
    		{
    			"tested pod name not skip",
    			&v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: "in-pod1",
    				},
    			},
    			&config2.BugReportConfig{
    				Include: []*config2.SelectionSpec{
    					{
    						Pods: []string{"in-"},
    					},
    				},
    				Exclude: []*config2.SelectionSpec{
    					{
    						Pods: []string{"ex-"},
    					},
    				},
    			},
    			false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 06 17:23:32 UTC 2023
    - 11K bytes
    - Viewed (0)
  10. pkg/controller/daemon/util/daemonset_util_test.go

    		tests := []struct {
    			pod         *v1.Pod
    			nodeName    string
    			expectedErr bool
    		}{
    			{
    				pod: &v1.Pod{
    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "pod1",
    						Namespace: "default",
    					},
    					Spec: v1.PodSpec{
    						NodeName: "node-1",
    					},
    				},
    				nodeName: "node-1",
    			},
    			{
    				pod: &v1.Pod{
    					ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top