Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for fakePods (0.15 sec)

  1. pkg/kubelet/cm/devicemanager/topology_hints_test.go

    }
    
    func getCommonTestCases() []topologyHintTestCase {
    	return []topologyHintTestCase{
    		{
    			description: "Single Request, no alignment",
    			pod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					UID: "fakePod",
    				},
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{
    							Name: "fakeContainer",
    							Resources: v1.ResourceRequirements{
    								Limits: v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/kubelet/cm/cpumanager/policy_none_test.go

    func TestNonePolicyAllocate(t *testing.T) {
    	policy := &nonePolicy{}
    
    	st := &mockState{
    		assignments:   state.ContainerCPUAssignments{},
    		defaultCPUSet: cpuset.New(1, 2, 3, 4, 5, 6, 7),
    	}
    
    	testPod := makePod("fakePod", "fakeContainer", "1000m", "1000m")
    
    	container := &testPod.Spec.Containers[0]
    	err := policy.Allocate(st, testPod, container)
    	if err != nil {
    		t.Errorf("NonePolicy Allocate() error. expected no error but got: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go

    func TestCreatePodSandbox(t *testing.T) {
    	ctx := context.Background()
    	fakeRuntime, _, m, err := createTestRuntimeManager()
    	require.NoError(t, err)
    	pod := newTestPod()
    
    	fakeOS := m.osInterface.(*containertest.FakeOS)
    	fakeOS.MkdirAllFn = func(path string, perm os.FileMode) error {
    		// Check pod logs root directory is created.
    		assert.Equal(t, filepath.Join(testPodLogsDirectory, pod.Namespace+"_"+pod.Name+"_12345678"), path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    	err = m.containerGC.evictPodLogsDirectories(ctx, true)
    	assert.NoError(t, err)
    	assert.Equal(t, removed, fakeOS.Removes)
    
    	// allSourcesReady == false, pod log directories should not be removed.
    	fakeOS.Removes = []string{}
    	err = m.containerGC.evictPodLogsDirectories(ctx, false)
    	assert.NoError(t, err)
    	assert.Empty(t, fakeOS.Removes)
    }
    
    func TestUnknownStateContainerGC(t *testing.T) {
    	ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top