e2e: Increases the memory limit for downward API tests

Currently, the downward API tests flake on Windows with a failure
to allocate memory when starting the agnhost binary used in these
tests. The tests are spawning pods with a memory limit of 64MB,
which is a bit on the low side for a Windows Pod, even if it's
a nanoserver-based image.

Increases the memory limit to 128MB, the primary goal of the tests
is not to enforce and test the limits, but to check if these details
are projected into the Pod.
This commit is contained in:
Claudiu Belu 2023-10-17 17:03:37 +00:00
parent d22e315c4a
commit 055e926a92
2 changed files with 3 additions and 3 deletions

View File

@ -210,7 +210,7 @@ var _ = SIGDescribe("Downward API volume", func() {
pod := downwardAPIVolumeForContainerResources(podName, "/etc/podinfo/memory_limit") pod := downwardAPIVolumeForContainerResources(podName, "/etc/podinfo/memory_limit")
e2epodoutput.TestContainerOutput(ctx, f, "downward API volume plugin", pod, 0, []string{ e2epodoutput.TestContainerOutput(ctx, f, "downward API volume plugin", pod, 0, []string{
fmt.Sprintf("67108864\n"), "134217728\n",
}) })
}) })
@ -339,7 +339,7 @@ func downwardAPIVolumeBaseContainers(name, filePath string) []v1.Container {
}, },
Limits: v1.ResourceList{ Limits: v1.ResourceList{
v1.ResourceCPU: resource.MustParse("1250m"), v1.ResourceCPU: resource.MustParse("1250m"),
v1.ResourceMemory: resource.MustParse("64Mi"), v1.ResourceMemory: resource.MustParse("128Mi"),
}, },
}, },
VolumeMounts: []v1.VolumeMount{ VolumeMounts: []v1.VolumeMount{

View File

@ -210,7 +210,7 @@ var _ = SIGDescribe("Projected downwardAPI", func() {
pod := downwardAPIVolumeForContainerResources(podName, "/etc/podinfo/memory_limit") pod := downwardAPIVolumeForContainerResources(podName, "/etc/podinfo/memory_limit")
e2epodoutput.TestContainerOutput(ctx, f, "downward API volume plugin", pod, 0, []string{ e2epodoutput.TestContainerOutput(ctx, f, "downward API volume plugin", pod, 0, []string{
fmt.Sprintf("67108864\n"), "134217728\n",
}) })
}) })