mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-03 07:11:01 +00:00
This commit adds an e2e test for the kubelet flags `--lock-file` and `exit-on-lock-contention`. Eventually we would like to move them to the kubelet configuration file rather than flags. This test is based on the premise that whenever there is a lock contention of the lock file (e.g. /var/run/kubelet.lock), the running kubelet must terminate and the waiting for the lock on the lock file to be released before starting again. In this test we simulate that behaviour of a file contention. The test would try to acquire the lock on the lock file. Success of the test is determined kubelet health check when the lock is acquired by the test and passes when the lock on the lock file is released. Signed-off-by: Imran Pochi <imran@kinvolk.io>