Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for fakePod2 (0.11 sec)

  1. pkg/kubelet/pleg/generic_test.go

    	testPleg := newTestGenericPLEG()
    	pleg, runtime := testPleg.pleg, testPleg.runtime
    	ch := pleg.Watch()
    	// The first relist should send a PodSync event to each pod.
    	runtime.AllPodList = []*containertest.FakePod{
    		{Pod: &kubecontainer.Pod{
    			ID: "1234",
    			Containers: []*kubecontainer.Container{
    				createTestContainer("c1", kubecontainer.ContainerStateExited),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  2. pkg/kubelet/container/testing/fake_runtime.go

    	defer f.Unlock()
    
    	var pods []*kubecontainer.Pod
    
    	f.CalledFunctions = append(f.CalledFunctions, "GetPods")
    	if all {
    		for _, fakePod := range f.AllPodList {
    			pods = append(pods, fakePod.Pod)
    		}
    	} else {
    		for _, fakePod := range f.PodList {
    			pods = append(pods, fakePod.Pod)
    		}
    	}
    	return pods, f.Err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher_test.go

    			expectedAttachID: getAttachmentName("test-vol", "attachable", "fakeNode"),
    			expectError:      false,
    		},
    		{
    			name: "failed attach with vol source",
    			makeAttachment: func() *storage.VolumeAttachment {
    
    				testAttachID := getAttachmentName("test-vol", "attachable", "fakeNode")
    				successfulAttachment := makeTestAttachment(testAttachID, "fakeNode", "volSrc01")
    				successfulAttachment.Status.Attached = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    func returnTestCases() []testCase {
    	testPod1 := makePod("fakePod", "fakeContainer", "2", "2")
    	testContainer1 := &testPod1.Spec.Containers[0]
    	testPod2 := makePod("fakePod", "fakeContainer", "5", "5")
    	testContainer2 := &testPod2.Spec.Containers[0]
    	testPod3 := makePod("fakePod", "fakeContainer", "7", "7")
    	testContainer3 := &testPod3.Spec.Containers[0]
    	testPod4 := makePod("fakePod", "fakeContainer", "11", "11")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_test.go

    		ID:   "abc1234",
    	}
    
    	fakePod := &containertest.FakePod{
    		Pod: &kubecontainer.Pod{
    			ID:        "12345678",
    			Name:      "podFoo",
    			Namespace: "nsFoo",
    			Containers: []*kubecontainer.Container{
    				{
    					Name: "containerFoo",
    					ID:   containerID,
    				},
    			},
    		},
    	}
    
    	fakeRuntime.PodList = []*containertest.FakePod{fakePod}
    	wrongContainerName := "wrongContainerName"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_plugin_test.go

    		host = volumetest.NewFakeVolumeHostWithCSINodeName(t,
    			tmpDir,
    			client,
    			ProbeVolumePlugins(),
    			"fakeNode",
    			csiDriverLister,
    			nil,
    		)
    	case kubeletVolumeHostType:
    		host = volumetest.NewFakeKubeletVolumeHostWithCSINodeName(t,
    			tmpDir,
    			client,
    			ProbeVolumePlugins(),
    			"fakeNode",
    			csiDriverLister,
    			volumeAttachmentLister,
    		)
    	case attachDetachVolumeHostType:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    			func(b *testing.B) {
    				// create sample pods
    				fakePods := make([]example.Pod, tc.totalObjectNum, tc.totalObjectNum)
    				for i := range fakePods {
    					fakePods[i].Namespace = "default"
    					fakePods[i].Name = fmt.Sprintf("pod-%d", i)
    					fakePods[i].ResourceVersion = strconv.Itoa(i)
    					if i%(tc.totalObjectNum/tc.expectObjectNum) == 0 {
    						fakePods[i].Spec.NodeName = "node-0"
    					}
    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. cni/pkg/plugin/plugin_dryrun_test.go

    	}
    }
    
    func buildFakeDryRunPod() *corev1.Pod {
    	app := corev1.Container{Name: "test"}
    	proxy := corev1.Container{Name: "istio-proxy"}
    	validate := corev1.Container{Name: "istio-validate"}
    	fakePod := &corev1.Pod{
    		TypeMeta: metav1.TypeMeta{
    			APIVersion: "core/v1",
    			Kind:       "Pod",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:        testPodName,
    			Namespace:   testNSName,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_test.go

    						Name: test.driver,
    					},
    					Spec: *test.driverSpec,
    				}
    				objs = append(objs, driverInfo)
    			}
    			objs = append(objs, &api.Node{
    				ObjectMeta: meta.ObjectMeta{
    					Name: "fakeNode",
    				},
    				Spec: api.NodeSpec{},
    			})
    
    			client := fakeclient.NewSimpleClientset(objs...)
    
    			factory := informers.NewSharedInformerFactory(client, time.Hour /* disable resync */)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  10. pilot/pkg/autoregistration/controller_test.go

    		// stop1 should be killed early, as part of test
    		if !stopped1 {
    			close(stop1)
    		}
    	}()
    	defer close(stop2)
    	go c1.Run(stop1)
    	go c2.Run(stop2)
    	go store.Run(stop2)
    
    	n := fakeNode("reg1", "zone1", "subzone1")
    
    	var p1conn1, p1conn2 *fakeConn
    	p := fakeProxy("1.2.3.4", wgA, "nw1", "sa-a")
    	p.Locality = n.Locality
    
    	var p2conn1 *fakeConn
    	p2 := fakeProxy("1.2.3.4", wgA, "nw2", "sa-a")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 00:00:36 UTC 2024
    - 31.4K bytes
    - Viewed (0)
Back to top