From 055e926a924865e7a6aa6b3f1b7aa00ab60527f6 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Tue, 17 Oct 2023 17:03:37 +0000 Subject: [PATCH] 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. --- test/e2e/common/storage/downwardapi_volume.go | 4 ++-- test/e2e/common/storage/projected_downwardapi.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/common/storage/downwardapi_volume.go b/test/e2e/common/storage/downwardapi_volume.go index 07c8a2c3b17..25361f27dc9 100644 --- a/test/e2e/common/storage/downwardapi_volume.go +++ b/test/e2e/common/storage/downwardapi_volume.go @@ -210,7 +210,7 @@ var _ = SIGDescribe("Downward API volume", func() { pod := downwardAPIVolumeForContainerResources(podName, "/etc/podinfo/memory_limit") 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{ v1.ResourceCPU: resource.MustParse("1250m"), - v1.ResourceMemory: resource.MustParse("64Mi"), + v1.ResourceMemory: resource.MustParse("128Mi"), }, }, VolumeMounts: []v1.VolumeMount{ diff --git a/test/e2e/common/storage/projected_downwardapi.go b/test/e2e/common/storage/projected_downwardapi.go index a08bcf76b61..7c54db0e88e 100644 --- a/test/e2e/common/storage/projected_downwardapi.go +++ b/test/e2e/common/storage/projected_downwardapi.go @@ -210,7 +210,7 @@ var _ = SIGDescribe("Projected downwardAPI", func() { pod := downwardAPIVolumeForContainerResources(podName, "/etc/podinfo/memory_limit") e2epodoutput.TestContainerOutput(ctx, f, "downward API volume plugin", pod, 0, []string{ - fmt.Sprintf("67108864\n"), + "134217728\n", }) })