Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for cpod2 (0.21 sec)

  1. pilot/pkg/serviceregistry/kube/controller/pod_test.go

    	events.WaitOrdered("pod1/add", "pod1/update")
    	createPod("128.0.0.1", "pod2")
    	events.WaitOrdered("pod2/add", "pod2/update")
    	assert.Equal(t, sets.New(c.pods.getPodKeys("128.0.0.1")...), sets.New(
    		types.NamespacedName{Name: "pod1", Namespace: "ns"},
    		types.NamespacedName{Name: "pod2", Namespace: "ns"},
    	))
    
    	p := c.pods.getPodByKey(types.NamespacedName{Name: "pod1", Namespace: "ns"})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 18:27:40 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_set_test.go

    	_, ctx := ktesting.NewTestContext(t)
    	set := newStatefulSet(3)
    	ssc, _, om, _ := newFakeStatefulSetController(ctx, set)
    	pod1 := newStatefulSetPod(set, 1)
    	// pod2 is owned but has wrong name.
    	pod2 := newStatefulSetPod(set, 2)
    	pod2.Name = "x" + pod2.Name
    	// pod3 is owned but has wrong labels.
    	pod3 := newStatefulSetPod(set, 3)
    	pod3.Labels = nil
    	// pod4 is an orphan that doesn't match.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  3. pilot/pkg/leaderelection/leaderelection_test.go

    	// A new pod is not the leader
    	_, stop2 := createPerRevisionElection(t, "pod2", "foo", watcher, false, client)
    	close(stop2)
    	close(stop)
    	t.Log("drop")
    	// After leader is lost, we can take over
    	_, stop3 := createPerRevisionElection(t, "pod2", "foo", watcher, true, client)
    	// Other revisions are independent
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/marshal_test.go

    		t.Fatalf("unexpected error marshalling: %v", err)
    	}
    
    	pod2, ok := obj2.(*corev1.Pod)
    	if !ok {
    		t.Fatal("did not get a Pod")
    	}
    
    	if pod2.Name != pod.Name {
    		t.Errorf("expected %q, got %q", pod.Name, pod2.Name)
    	}
    
    	if pod2.Namespace != pod.Namespace {
    		t.Errorf("expected %q, got %q", pod.Namespace, pod2.Namespace)
    	}
    
    	if !reflect.DeepEqual(pod2.Labels, pod.Labels) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_serviceentry_test.go

    					WorkloadName:      "pod1",
    				},
    			},
    		},
    	}})
    
    	s.addPods(t, "140.140.0.11", "pod2", "sa1", map[string]string{"app": "other"}, nil, true, corev1.PodRunning)
    	s.assertEvent(t, s.podXdsName("pod2"))
    	s.assertWorkloads(t, "", workloadapi.WorkloadStatus_HEALTHY, "pod1", "pod2")
    	s.addWorkloadEntries(t, "240.240.34.56", "name1", "sa1", map[string]string{"app": "a"})
    	s.assertEvent(t, s.wleXdsName("name1"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 03:01:04 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go

    		Level: "s0:c3,c4",
    	}
    	seLinuxContainerContexts2 := []*v1.SELinuxOptions{&seLinux2}
    	pod2 := pod.DeepCopy()
    	pod2.Name = "pod2"
    	pod2.UID = "pod2uid"
    	pod2.Spec.SecurityContext.SELinuxOptions = &seLinux2
    	pod2Name := util.GetUniquePodName(pod2)
    
    	// Act
    	_, err = dsw.AddPodToVolume(
    		pod2Name, pod2, volumeSpec, volumeSpec.Name(), "" /* volumeGidValue */, seLinuxContainerContexts2)
    	// Assert
    	if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. plugin/pkg/admission/serviceaccount/admission_test.go

    			},
    		},
    	}
    	attrs = admission.NewAttributesRecord(pod2, nil, api.Kind("Pod").WithVersion("version"), ns, "myname", api.Resource("pods").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil)
    	if err := admissiontesting.WithReinvocationTesting(t, admit).Admit(context.TODO(), attrs, nil); err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    
    	pod2 = &api.Pod{
    		Spec: api.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. pkg/dns/server/name_table_test.go

    	push.AddServiceInstances(headlessService,
    		makeServiceInstances(pod1, headlessService, "pod1", "headless-svc"))
    	push.AddServiceInstances(headlessService,
    		makeServiceInstances(pod2, headlessService, "pod2", "headless-svc"))
    	push.AddServiceInstances(headlessService,
    		makeServiceInstances(pod3, headlessService, "pod3", "headless-svc"))
    	push.AddServiceInstances(headlessService,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 25 04:26:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  9. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    		"/pod1-c0": getTestContainerInfo(seedPod1Container, pName1, namespace0, cName10),
    		// Pod2 - Namespace2
    		"/pod2-i":                        getTestContainerInfo(seedPod2Infra, pName2, namespace2, kubelettypes.PodInfraContainerName),
    		"/pod2-c0":                       getTestContainerInfo(seedPod2Container, pName2, namespace2, cName20),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/network_test.go

    	pod1 := generatePod("127.0.0.1", "pod1", testNS, "sa1", "node1", map[string]string{"app": "a"}, nil)
    	pc.CreateOrUpdateStatus(pod1)
    	fx.WaitOrFail(t, "xds")
    
    	pod2 := generatePod("127.0.0.2", "pod2", testNS, "sa2", "node1", map[string]string{"app": "a"}, nil)
    	pc.CreateOrUpdateStatus(pod2)
    	fx.WaitOrFail(t, "xds")
    
    	sc.CreateOrUpdate(generateService("svc1", testNS, map[string]string{}, // labels
    		map[string]string{}, // annotations
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top