- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for fakeContainer5 (0.15 sec)
-
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/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/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/kuberuntime/kuberuntime_manager_test.go
fakeSandbox, fakeContainers := makeAndSetFakePod(t, m, fakeRuntime, pod) // Convert the fakeContainers to kubecontainer.Container containers := make([]*kubecontainer.Container, len(fakeContainers)) for i := range containers { fakeContainer := fakeContainers[i] c, err := m.toKubeContainer(&runtimeapi.Container{ Id: fakeContainer.Id, Metadata: fakeContainer.Metadata,
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/kuberuntime/kuberuntime_gc_test.go
fakeContainers := makeFakeContainers(t, m, test.containers) for _, s := range test.containers { if s.pod.Name == "deleted" { podStateProvider.removed[s.pod.UID] = struct{}{} } if s.pod.Name != "running" { podStateProvider.terminated[s.pod.UID] = struct{}{} } } fakeRuntime.SetFakeContainers(fakeContainers) if test.policy == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 20.6K 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_container_test.go
Image: "busybox", ImagePullPolicy: v1.PullIfNotPresent, }, }, }, } // Create fake sandbox and container _, fakeContainers := makeAndSetFakePod(t, m, fakeRuntime, pod) assert.Equal(t, len(fakeContainers), 1) containerID := fakeContainers[0].Id fakeOS := m.osInterface.(*containertest.FakeOS) fakeOS.GlobFn = func(pattern, path string) bool { pattern = strings.Replace(pattern, "*", ".*", -1)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 28K 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)