kubernetes/test
Rodrigo Campos a138a4825e tests: Wait for pod to be removed on kubelet restart with idsPerPod
The test starts the kubelet with a non-default setting for idsPerPod,
runs a pod, deletes it, and then restarts the kubelet.

The issue is that the kubelet guarantees that no two pods userns
mappings overlap (for security reasons). But we are not waiting for the
pod to be removed, the deleteSync() call only waits for the API server
to remove the pod.

So, the pod is on disk (and maybe even running!) when we restart the
kubelet. As the previous configuration is incompatible with the new one
after restart if pods are running, the kubelet failing is the right
thing. We should just wait for the pod to be deleted from the kubelet
too, before restarting it with an incompatible configuration.

So, this commit just changes the pod deleteion (before done in
e2eoutput.TestContainerOutput() just waiting for the API server) to wait
for the kubelet to delete the pod.

Signed-off-by: Rodrigo Campos <rodrigo@amutable.com>
2026-04-09 11:45:22 +02:00
..
cmd pause: fix version drift in various files 2026-04-03 16:11:09 +02:00
compatibility_lifecycle Merge pull request #134947 from aojea/dra_status_check 2026-03-26 22:34:18 +05:30
conformance mark ImageVolume conformance test to LinuxOnly 2026-03-12 15:48:50 +08:00
e2e Simplify isPodLevelResourcesResizeInProgress to check for absence of actuated resources 2026-03-27 23:03:20 +00:00
e2e_dra Merge pull request #137481 from pohly/PR224-fix-upgrade-downgrade-failures 2026-03-10 20:21:13 +05:30
e2e_kubeadm switch to latest sigs.k8s.io/yaml v1.5.0 (run update-gofmt.sh as well) 2025-06-25 11:42:12 -04:00
e2e_node tests: Wait for pod to be removed on kubelet restart with idsPerPod 2026-04-09 11:45:22 +02:00
fixtures pause: fix version drift in various files 2026-04-03 16:11:09 +02:00
fuzz switch to latest sigs.k8s.io/yaml v1.5.0 (run update-gofmt.sh as well) 2025-06-25 11:42:12 -04:00
images pause: fix version drift in various files 2026-04-03 16:11:09 +02:00
instrumentation Merge pull request #137989 from hoteye/fix-preferredimports-owners-typo 2026-03-24 16:12:19 +05:30
integration pause: fix version drift in various files 2026-04-03 16:11:09 +02:00
kubemark Update NPD to v1.34.0 2025-09-27 19:57:47 +03:00
list
soak/serve_hostnames Lint: Use modernize/rangeint in test/{e2e,e2e_node,images,soak} 2026-03-07 10:17:31 +01:00
typecheck Retool typecheck to be simpler 2024-02-29 22:07:00 -08:00
utils pause: fix version drift in various files 2026-04-03 16:11:09 +02:00
OWNERS emeritus spiffxp 2025-06-10 20:05:40 -07:00