Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 191 for poda (0.04 sec)

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

    		}, retry.Timeout(time.Second*5))
    	}
    
    	pc := clienttest.NewWriter[*corev1.Pod](t, s.client)
    	sc := clienttest.NewWriter[*corev1.Service](t, s.client)
    	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)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. 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)
  3. pkg/kubelet/cm/devicemanager/manager_test.go

    	})
    	pod2 := makePod(v1.ResourceList{
    		v1.ResourceName(res2.resourceName): res2.resourceQuantity,
    	})
    
    	activePods := []*v1.Pod{pod1, pod2}
    	podsStub.updateActivePods(activePods)
    
    	err = testManager.Allocate(pod1, &pod1.Spec.Containers[0])
    	as.Nil(err)
    	err = testManager.Allocate(pod2, &pod2.Spec.Containers[0])
    	as.Nil(err)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  4. 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)
  5. pkg/volume/util/nestedpendingoperations/nestedpendingoperations_test.go

    	}
    }
    
    /* Concurrent operations tests */
    
    // "None" means volume, pod, and node names are all empty
    // "Volume" means volume name is set, but pod name and node name are empty
    // "Volume Pod" means volume and pod names are set, but the node name is empty
    // "Volume Node" means volume and node names are set, but the pod name is empty
    
    // The same volume, pod, and node names are used (where they are not empty).
    
    // Covered cases:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 01:29:17 UTC 2022
    - 36.1K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/cache/actual_state_of_world_test.go

    // Call MarkVolumeAsDetached() on a volume which mounted by pod(s) should be skipped
    func Test_MarkVolumeAsDetached_Negative_PodInVolume(t *testing.T) {
    	// Arrange
    	volumePluginMgr, plugin := volumetesting.GetTestVolumePluginMgr(t)
    	devicePath := "fake/device/path"
    	asw := NewActualStateOfWorld("mynode", volumePluginMgr)
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "pod1",
    			UID:  "pod1uid",
    		},
    		Spec: v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  7. pkg/scheduler/util/utils.go

    func GetPodFullName(pod *v1.Pod) string {
    	// Use underscore as the delimiter because it is not allowed in pod name
    	// (DNS subdomain format).
    	return pod.Name + "_" + pod.Namespace
    }
    
    // GetPodStartTime returns start time of the given pod or current timestamp
    // if it hasn't started yet.
    func GetPodStartTime(pod *v1.Pod) *metav1.Time {
    	if pod.Status.StartTime != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/nodeports/node_ports_test.go

    			result := getContainerPorts(test.pod1, test.pod2)
    			if diff := cmp.Diff(test.expected, result); diff != "" {
    				t.Errorf("container ports: container ports does not match (-want,+got): %s", diff)
    			}
    		})
    	}
    }
    
    func Test_isSchedulableAfterPodDeleted(t *testing.T) {
    	podWithHostPort := st.MakePod().HostPort(8080)
    
    	testcases := map[string]struct {
    		pod          *v1.Pod
    		oldObj       interface{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 11:02:11 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  9. pkg/scheduler/schedule_one_test.go

    				ForgetFunc: func(pod *v1.Pod) {
    					gotForgetPod = pod
    				},
    				AssumeFunc: func(pod *v1.Pod) {
    					gotAssumedPod = pod
    				},
    				IsAssumedPodFunc: func(pod *v1.Pod) bool {
    					if pod == nil || gotAssumedPod == nil {
    						return false
    					}
    					return pod.UID == gotAssumedPod.UID
    				},
    			}
    			client := clientsetfake.NewSimpleClientset(item.sendPod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/memorymanager/policy_static_test.go

    			}
    
    			for i := range testCase.pod.Spec.InitContainers {
    				err = p.Allocate(s, testCase.pod, &testCase.pod.Spec.InitContainers[i])
    				if !reflect.DeepEqual(err, testCase.expectedError) {
    					t.Fatalf("The actual error %v is different from the expected one %v", err, testCase.expectedError)
    				}
    			}
    
    			for i := range testCase.pod.Spec.Containers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 05:49:15 UTC 2023
    - 100.4K bytes
    - Viewed (0)
Back to top