kubernetes/test/e2e/framework/pod
David Porter c5a1f0188b
test: Add node e2e test to verify static pod termination
Add node e2e test to verify that static pods can be started after a
previous static pod with the same config temporarily failed termination.

The scenario is:

1. Static pod is started
2. Static pod is deleted
3. Static pod termination fails (internally `syncTerminatedPod` fails)
4. At later time, pod termination should succeed
5. New static pod with the same config is (re)-added
6. New static pod is expected to start successfully

To repro this scenario, setup a pod using a NFS mount. The NFS server is
stopped which will result in volumes failing to unmount and
`syncTerminatedPod` to fail. The NFS server is later started, allowing
the volume to unmount successfully.

xref:

1. https://github.com/kubernetes/kubernetes/pull/113145#issuecomment-1289587988
2. https://github.com/kubernetes/kubernetes/pull/113065
3. https://github.com/kubernetes/kubernetes/pull/113093

Signed-off-by: David Porter <david@porter.me>
2023-03-03 10:00:48 -06:00
..
output test: Add node e2e test to verify static pod termination 2023-03-03 10:00:48 -06:00
.import-restrictions e2e: revise import restrictions 2023-02-12 14:56:45 +01:00
create.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
delete.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
dial.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
exec_util.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
get.go e2e framework/pod: add Get helper 2023-01-16 09:05:37 +01:00
node_selection.go e2e: avoid setting NodeName for CSI driver deployments 2020-02-26 10:33:29 +01:00
pod_client.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
resource_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
resource.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
utils_test.go Add MixinRestrictedPodSecurity e2e util 2022-05-24 16:10:16 -07:00
utils.go Add e2e_node test for oom killed container reason 2023-02-20 08:15:45 +01:00
wait_test.go e2e pod: unit test for pod status + API error 2023-02-06 15:39:13 +01:00
wait.go e2e pod: remove dead code 2023-02-06 15:39:13 +01:00