Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: node-init should use docker if /etc/crictl.yaml not found
[ upstream commit 552c823 ] [ Backporter's notes: The original change contains two locations where the check for crictl.yaml needed to be modified. In the v1.6 tree, only one location contains a reference to crictl.yaml, and this commit modifies it. ] This script has several tests for what the container runtime situation looks like to determine how best to restart the underlying containers (going around the kubelet) so that the new networking configuration can take effect. The first test looks to see if the crictl config file is configured to use docker, but if that file doesn't exist then it fails. I believe docker is the default if this hasn't been configured at all so if that file doesn't exist then use docker. Fixes #12850 Signed-off-by: Nathan Bird <njbird@infiniteenergy.com> Signed-off-by: Chris Tarazi <chris@isovalent.com>
- Loading branch information