Merge pull request #3258 from fidencio/wip/kata-deploy-count-with-a-non-existend-containerd-config-file

kata-deploy: Deal with empty containerd conf file
This commit is contained in:
Jakob Naucke 2021-12-14 20:14:41 +01:00 committed by GitHub
commit 70274b9d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,6 +266,11 @@ function main() {
containerd_conf_file="${containerd_conf_tmpl_file}"
containerd_conf_file_backup="${containerd_conf_file}.bak"
else
# runtime == containerd
if [ ! -f "$containerd_conf_file" ]; then
containerd config default > "$containerd_conf_file"
fi
fi
action=${1:-}