Merge pull request #10170 from beraldoleal/deploy-reset-fix

kata-deploy: fix kata-deploy reset
This commit is contained in:
Fabiano Fidêncio 2024-08-16 16:51:14 +02:00 committed by GitHub
commit b203f715e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -663,7 +663,7 @@ function main() {
runtime="crio"
elif [ "$runtime" == "k3s" ] || [ "$runtime" == "k3s-agent" ] || [ "$runtime" == "rke2-agent" ] || [ "$runtime" == "rke2-server" ]; then
containerd_conf_tmpl_file="${containerd_conf_file}.tmpl"
if [ ! -f "$containerd_conf_tmpl_file" ]; then
if [ ! -f "$containerd_conf_tmpl_file" ] && [ -f "$containerd_conf_file" ]; then
cp "$containerd_conf_file" "$containerd_conf_tmpl_file"
fi