Files
kubernetes/test/e2e_node
Swati Sehgal 282a6a80b9 node: device-mgr: e2e: Update the e2e test to reproduce issue:109595
Breakdown of the steps implemented as part of this e2e test is as follows:
1. Create a file `registration` at path `/var/lib/kubelet/device-plugins/sample/`
2. Create sample device plugin with an environment variable with
   `REGISTER_CONTROL_FILE=/var/lib/kubelet/device-plugins/sample/registration` that
    waits for a client to delete the control file.
3. Trigger plugin registeration by deleting the abovementioned directory.
4. Create a test pod requesting devices exposed by the device plugin.
5. Stop kubelet.
6. Remove pods using CRI to ensure new pods are created after kubelet restart.
7. Restart kubelet.
8. Wait for the sample device plugin pod to be running. In this case,
   the registration is not triggered.
9. Ensure that resource capacity/allocatable exported by the device plugin is zero.
10. The test pod should fail with `UnexpectedAdmissionError`
11. Delete the test pod.
12. Delete the sample device plugin pod.
13. Remove `/var/lib/kubelet/device-plugins/sample/` and its content, the directory
    created to control registration

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-04-28 14:43:17 +01:00
..
2022-12-10 19:50:18 +01:00
2021-02-28 15:17:29 -08:00
2023-03-14 10:36:25 -04:00
2021-02-28 15:17:29 -08:00
2022-10-06 08:19:47 +02:00
2022-12-16 20:14:04 +01:00
2022-12-16 20:14:04 +01:00
2019-11-26 16:26:55 +08:00
2023-02-22 19:36:05 +01:00
2022-12-16 20:14:04 +01:00
2022-12-16 20:14:04 +01:00
2022-12-16 20:14:04 +01:00
2022-12-16 20:14:04 +01:00
2023-02-13 11:16:39 -05:00
2022-11-01 12:16:43 -07:00
2022-12-16 20:14:04 +01:00
2022-12-16 20:14:04 +01:00
2022-12-16 20:14:04 +01:00
2020-08-13 16:03:37 -04:00
2022-12-16 20:14:04 +01:00
2022-12-16 20:14:04 +01:00
2022-12-16 20:14:04 +01:00
2022-12-16 20:14:04 +01:00
2023-03-14 20:46:41 +00:00
2022-12-16 20:14:04 +01:00