- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for fakeContainer (0.26 sec)
-
pkg/kubelet/cm/devicemanager/topology_hints_test.go
}, Spec: v1.PodSpec{ Containers: []v1.Container{ { Name: "fakeContainer1", Resources: v1.ResourceRequirements{ Limits: v1.ResourceList{ v1.ResourceName("testdevice1"): resource.MustParse("2"), }, }, }, { Name: "fakeContainer2", 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) -
pkg/kubelet/cm/cpumanager/topology_hints_test.go
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") testContainer4 := &testPod4.Spec.Containers[0]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 19K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_none_test.go
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) -
pkg/kubelet/kuberuntime/kuberuntime_manager_test.go
func makeFakeContainers(t *testing.T, m *kubeGenericRuntimeManager, templates []containerTemplate) []*apitest.FakeContainer { var fakeContainers []*apitest.FakeContainer for _, template := range templates { fakeContainers = append(fakeContainers, makeFakeContainer(t, m, template)) } return fakeContainers } // makeTestContainer creates a test api container. func makeTestContainer(name, image string) v1.Container {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 96K bytes - Viewed (0) -
pkg/kubelet/stats/cri_stats_provider_test.go
return p } func makeFakeContainer(sandbox *critest.FakePodSandbox, name string, attempt uint32, terminated bool) *critest.FakeContainer { sandboxID := sandbox.PodSandboxStatus.Id c := &critest.FakeContainer{ SandboxID: sandboxID, ContainerStatus: runtimeapi.ContainerStatus{ Metadata: &runtimeapi.ContainerMetadata{Name: name, Attempt: attempt},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 54.5K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_manager_test.go
pod := makePod("fakePod", "fakeContainer", "2", "2") container := &pod.Spec.Containers[0] _ = mgr.Allocate(pod, container) if !mgr.GetAllocatableCPUs().Equals(testCase.expAllocatableCPUs) { t.Errorf("Policy GetAllocatableCPUs() error (%v). expected cpuset %v for container %v but got %v", testCase.description, testCase.expAllocatableCPUs, "fakeContainer", mgr.GetAllocatableCPUs()) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 13:16:15 UTC 2023 - 42.9K bytes - Viewed (0) -
pkg/kubelet/logs/container_log_manager_test.go
f, err := os.Create(filepath.Join(dir, testLogs[i])) require.NoError(t, err) _, err = f.Write([]byte(testContent[i])) require.NoError(t, err) f.Close() } testContainers := []*critest.FakeContainer{ { ContainerStatus: runtimeapi.ContainerStatus{ Id: "container-not-need-rotate", State: runtimeapi.ContainerState_CONTAINER_RUNNING, LogPath: filepath.Join(dir, testLogs[0]), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 12.7K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_static_test.go
topo: topoSingleSocketHT, podUID: "fakePod", containerName: "fakeContainer1", stAssignments: state.ContainerCPUAssignments{ "fakePod": map[string]cpuset.CPUSet{ "fakeContainer1": cpuset.New(1, 2, 3), "fakeContainer2": cpuset.New(4, 5, 6, 7), }, }, stDefaultCPUSet: cpuset.New(), expCSet: cpuset.New(1, 2, 3), }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 40.8K bytes - Viewed (0) -
pkg/kubelet/cm/memorymanager/memory_manager_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 05 13:01:40 UTC 2023 - 70.2K bytes - Viewed (0) -
pkg/kubelet/images/image_gc_manager_test.go
Containers: []*container.Container{ makeContainer(0), makeContainer(1), }, }}, } // Make 1 be more recently used than 0. _, err := manager.detectImages(ctx, zero) require.NoError(t, err) fakeRuntime.AllPodList = []*containertest.FakePod{ {Pod: &container.Pod{ Containers: []*container.Container{ makeContainer(1), }, }}, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 15:38:20 UTC 2024 - 29.2K bytes - Viewed (0)