Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 50 for pod_1 (2.55 sec)

  1. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_workloadentry_test.go

    	s.addPods(t, "127.0.0.201", "pod1", "pod1", map[string]string{"app": "a"}, nil, true, corev1.PodRunning)
    	s.assertEvent(t, s.podXdsName("pod1"))
    
    	s.addService(t, "svc1", map[string]string{}, // labels
    		map[string]string{}, // annotations
    		[]int32{80},
    		map[string]string{"app": "a"}, // selector
    		"10.0.0.1",
    	)
    	s.assertEvent(t, s.podXdsName("pod1"), "ns1/svc1.ns1.svc.company.com")
    
    	s.clearEvents()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/nodeports/node_ports_test.go

    		t.Errorf("status does not match: %v, want: %v", gotStatus, wantStatus)
    	}
    }
    
    func TestGetContainerPorts(t *testing.T) {
    	tests := []struct {
    		pod1     *v1.Pod
    		pod2     *v1.Pod
    		expected []*v1.ContainerPort
    	}{
    		{
    			pod1: st.MakePod().ContainerPort([]v1.ContainerPort{
    				{
    					ContainerPort: 8001,
    					HostPort:      8001,
    					Protocol:      v1.ProtocolTCP,
    				},
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 11:02:11 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/cache/desired_state_of_world_test.go

    	if len(volumesToAttach) != 0 {
    		t.Fatalf("len(volumesToAttach) Expected: <0> Actual: <%v>", len(volumesToAttach))
    	}
    }
    
    // Populates data struct with pod1/volume/node and pod2/volume/node.
    // Calls DeleteNode() to delete the pod1/volume/node.
    // Verifies volume still exists, and one volumes to attach.
    func Test_DeletePod_Positive_2PodsExistNodeExistsVolumesExist(t *testing.T) {
    	// Arrange
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  4. tools/bug-report/pkg/cluster/cluster_test.go

    					{
    						Namespaces: []string{"ex-"},
    					},
    				},
    			},
    			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{
    					{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 06 17:23:32 UTC 2023
    - 11K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    func TestWatchCacheBasic(t *testing.T) {
    	store := newTestWatchCache(2, &cache.Indexers{})
    	defer store.Stop()
    
    	// Test Add/Update/Delete.
    	pod1 := makeTestPod("pod", 1)
    	if err := store.Add(pod1); err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    	if item, ok, _ := store.Get(pod1); !ok {
    		t.Errorf("didn't find pod")
    	} else {
    		expected := makeTestStoreElement(makeTestPod("pod", 1))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  6. pkg/kubelet/preemption/preemption.go

    			}
    		}
    	}
    
    	return
    }
    
    // smallerResourceRequest returns true if pod1 has a smaller request than pod2
    func smallerResourceRequest(pod1 *v1.Pod, pod2 *v1.Pod) bool {
    	priorityList := []v1.ResourceName{
    		v1.ResourceMemory,
    		v1.ResourceCPU,
    	}
    	for _, res := range priorityList {
    		req1 := resource.GetResourceRequest(pod1, res)
    		req2 := resource.GetResourceRequest(pod2, res)
    		if req1 < req2 {
    			return true
    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/volume/fc/fc_test.go

    	fm := mount.NewFakeMounter(
    		[]mount.MountPoint{
    			{Device: "/dev/sdd", Path: "/var/lib/kubelet/pods/some-pod/volumes/kubernetes.io~fc/fc-in-pod1"},
    		})
    	mountPaths := []string{
    		"/var/lib/kubelet/pods/some-pod/volumes/kubernetes.io~fc/fc-in-pod1",
    	}
    	for _, path := range mountPaths {
    		refs, _ := fm.GetMountRefs(path)
    		var globalPDPath string
    		for _, ref := range refs {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 14.1K bytes
    - Viewed (0)
  8. 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)
  9. pkg/scheduler/scheduler_test.go

    				},
    			},
    			waitSchedulingPods: []*v1.Pod{
    				st.MakePod().Name("pod1").UID("pod1").SchedulerName(testSchedulerProfile1).Obj(),
    				st.MakePod().Name("pod2").UID("pod2").SchedulerName(testSchedulerProfile1).Obj(),
    				st.MakePod().Name("pod3").UID("pod3").SchedulerName(testSchedulerProfile1).Obj(),
    			},
    			expectPodNamesInWaitingPods: []string{"pod1", "pod2", "pod3"},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 42K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/conversion_test.go

    		obj         runtime.Object
    		gvk         schema.GroupVersionKind
    		expectedObj runtime.Object
    	}{
    		"convert example#Pod to example/v1#Pod": {
    			obj: &example.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: "pod1",
    					Labels: map[string]string{
    						"key": "value",
    					},
    				},
    				Spec: example.PodSpec{
    					RestartPolicy: example.RestartPolicy("never"),
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top