Upon reconsidering as to the purpose of the test i.e to test the lock contention flags (--lock-file-contention and --lock-file), it makes sense that we test only the actual functionality which is the kubelet should stop once there is a lock contention. In no way it is the responsiblity of the kubelet to restart, which would be the responsiblity of a higher system such as systemd. Hence the removal of the check for releasing the lock and checking for whether the kubelet is healthy again or not seem out of scope from kubelet's responsiblities. Signed-off-by: Imran Pochi <imran@kinvolk.io>
3.2 KiB
3.2 KiB