mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-01 17:44:30 +00:00
Add a regression test for https://issues.k8s.io/116925. The test exercises the following: 1) Start a restart never pod which will exit with `v1.PodSucceeded` phase. 2) Start a graceful deletion of the pod (set a deletion timestamp) 3) Restart the kubelet as soon as the kubelet reports the pod is terminal (but before the pod is deleted). 4) Verify that after kubelet restart, the pod is deleted. As of v1.27, there is a delay between the pod being marked terminal phaes, and the status manager deleting the pod. If the kubelet is restarted in the middle, after starting up again, the kubelet needs to ensure the pod will be deleted on the API server. Signed-off-by: David Porter <david@porter.me>
17 KiB
17 KiB