- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 377 for podB (0.1 sec)
-
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) -
pilot/pkg/leaderelection/leaderelection_test.go
watcher := &fakeDefaultWatcher{} // First remote pod becomes the leader _, stop := createElectionMulticluster(t, "pod1", "", true, false, watcher, true, client) // A new local pod should become leader _, stop2 := createElectionMulticluster(t, "pod2", "", false, false, watcher, true, client) // A new remote pod cannot become leader _, stop3 := createElectionMulticluster(t, "pod3", "", true, false, watcher, false, client) close(stop3)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 28 04:22:19 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go
verifyVolumeExistsWithSpecNameInVolumeDsw(t, podName, volumeSpec.Name(), dsw) // Arrange: prepare a different pod with the same context pod2 := pod.DeepCopy() pod2.Name = "pod2" pod2.UID = "pod2uid" pod2Name := util.GetUniquePodName(pod) // Act generatedVolumeName2, err := dsw.AddPodToVolume( pod2Name, pod2, volumeSpec, volumeSpec.Name(), "" /* volumeGidValue */, seLinuxContainerContexts) // 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) -
pkg/controller/tainteviction/taint_eviction_test.go
expectedDeleteTimes: durationSlice{ {[]string{"pod1"}, 0}, {[]string{"pod2"}, time.Second}, }, }, { description: "Evict all pods not matching all taints instantly", pods: []corev1.Pod{ *testutil.NewPod("pod1", "node1"), *addToleration(testutil.NewPod("pod2", "node1"), 1, 1), *addToleration(testutil.NewPod("pod3", "node1"), 1, -1), }, oldNode: testutil.NewNode("node1"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 31.3K bytes - Viewed (0) -
hack/testdata/sorted-pods/sorted-pod2.yaml
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 24 07:02:51 UTC 2024 - 347 bytes - Viewed (0) -
pkg/controller/deployment/deployment_controller_test.go
rs2 := newReplicaSet(d, "rs2", 1) // Add a Pod for each ReplicaSet. pod1 := generatePodFromRS(rs1) pod2 := generatePodFromRS(rs2) // Add a Pod that has matching labels, but no ControllerRef. pod3 := generatePodFromRS(rs1) pod3.Name = "pod3" pod3.OwnerReferences = nil // Add a Pod that has matching labels and ControllerRef, but is inactive. pod4 := generatePodFromRS(rs1) pod4.Name = "pod4" pod4.Status.Phase = v1.PodFailed
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 32.5K bytes - Viewed (0) -
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) -
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) -
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) -
pilot/pkg/serviceregistry/kube/controller/pod_test.go
createPod("128.0.0.2", "pod") assert.Equal(t, c.pods.getPodKeys("128.0.0.2"), []types.NamespacedName{{Name: "pod", Namespace: "ns"}}) assert.Equal(t, c.pods.getPodKeys("128.0.0.1"), nil) // A new pod is created with the old IP. We should get new-pod, not pod createPod("128.0.0.1", "new-pod") assert.Equal(t, c.pods.getPodKeys("128.0.0.1"), []types.NamespacedName{{Name: "new-pod", 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)