mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
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:
parent
d22e315c4a
commit
055e926a92
@ -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{
|
||||
|
@ -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",
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user