Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for podB (0.27 sec)

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

    	s.assertEvent(t, s.podXdsName("pod4"))
    	s.clearEvents()
    
    	// Delete it, should remove from the Service as well
    	s.deletePod(t, "pod4")
    	s.assertAddresses(t, "", "pod1", "pod2", "pod3", "svc1")
    	s.assertAddresses(t, s.addrXdsName("10.0.0.1"), "pod1", "pod2", "svc1")
    	s.assertAddresses(t, s.addrXdsName("127.0.0.4")) // Should not be accessible anymore
    	s.assertAddresses(t, s.podXdsName("pod4"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  2. pkg/controller/replicaset/replica_set_test.go

    			rs:               someRS,
    			pods:             []*v1.Pod{pod1, pod2, pod3, pod4},
    			expectedPodNames: []string{"pod1", "pod2", "pod3"},
    		},
    	}
    	for _, c := range testCases {
    		for _, r := range c.rss {
    			informers.Apps().V1().ReplicaSets().Informer().GetIndexer().Add(r)
    		}
    		for _, pod := range c.pods {
    			informers.Core().V1().Pods().Informer().GetIndexer().Add(pod)
    			manager.addPod(logger, pod)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  3. pkg/kubelet/pod_workers_test.go

    		return status
    	}
    	withLabel := func(pod *v1.Pod, label, value string) *v1.Pod {
    		if pod.Labels == nil {
    			pod.Labels = make(map[string]string)
    		}
    		pod.Labels[label] = value
    		return pod
    	}
    	withDeletionTimestamp := func(pod *v1.Pod, ts time.Time, gracePeriod *int64) *v1.Pod {
    		pod.DeletionTimestamp = &metav1.Time{Time: ts}
    		pod.DeletionGracePeriodSeconds = gracePeriod
    		return pod
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    			},
    			wantAZ: map[*corev1.Pod]string{
    				pod1: "region1/zone1/",
    				pod2: "region2/zone2/",
    			},
    		},
    		{
    			name: "should return false if pod isn't in the cache",
    			wantAZ: map[*corev1.Pod]string{
    				pod1: "",
    				pod2: "",
    			},
    		},
    		{
    			name: "should return false if node isn't in the cache",
    			pods: []*corev1.Pod{pod1, pod2},
    			wantAZ: map[*corev1.Pod]string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  5. pkg/controller/endpointslice/endpointslice_controller_test.go

    }
    
    // Ensure SyncService correctly selects Pods.
    func TestSyncServicePodSelection(t *testing.T) {
    	client, esController := newController(t, []string{"node-1"}, time.Duration(0))
    	ns := metav1.NamespaceDefault
    
    	pod1 := newPod(1, ns, true, 0, false)
    	esController.podStore.Add(pod1)
    
    	// ensure this pod will not match the selector
    	pod2 := newPod(2, ns, true, 0, false)
    	pod2.Labels["foo"] = "boo"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  6. pkg/controller/endpoint/endpoints_controller_test.go

    			ns := "test"
    			addPods(podStore, ns, 1, 1, 0, tc.ipFamilies)
    			pods := podStore.List()
    			if len(pods) != 1 {
    				t.Fatalf("podStore size: expected: %d, got: %d", 1, len(pods))
    			}
    			pod := pods[0].(*v1.Pod)
    			epa, err := podToEndpointAddressForService(&tc.service, pod)
    
    			if err != nil && !tc.expectError {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    				Namespace:       "ns",
    				ResourceVersion: rv,
    			},
    		}
    	}
    	pod1 := makePod("pod", "1001")
    	pod2 := makePod("pod", "1002")
    	pod3 := makePod("pod", "1003")
    
    	cacher.watchCache.Add(pod1)
    	cacher.watchCache.Update(pod2)
    	cacher.watchCache.Delete(pod3)
    
    	// At this point, we already have dispatchedEvents fully propagated.
    
    	verifyEvents := func(w watch.Interface) {
    		var event watch.Event
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  8. pkg/controller/disruption/disruption_test.go

    	// This verifies that when a PDB has 0 pods, disruptions are not allowed.
    	ps.VerifyDisruptionAllowed(t, pdbName, 0)
    
    	pod, _ := newPod(t, "unmanaged")
    	add(t, dc.podStore, pod)
    	dc.sync(ctx, pdbName)
    	var pods []*v1.Pod
    	pods = append(pods, pod)
    	_, unmanagedPods, _ := dc.getExpectedScale(ctx, pdb, pods)
    	if len(unmanagedPods) != 1 {
    		t.Fatalf("expected one pod to be unmanaged pod but found %d", len(unmanagedPods))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top