From 62de5e649d151e55f1ed54d4c3f71ceedd47d3a2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 11 Nov 2024 13:58:42 +0100 Subject: [PATCH] Don't delete pods when stopping containers on reset k0s reset will delete any leftovers safely when deleting directories. Signed-off-by: Natanael Copa (cherry picked from commit 12aa9065b53e1a1940545ece35673b5794cfd7d2) --- pkg/cleanup/containers.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/cleanup/containers.go b/pkg/cleanup/containers.go index a3b063fcc896..b516977ddc6c 100644 --- a/pkg/cleanup/containers.go +++ b/pkg/cleanup/containers.go @@ -151,9 +151,6 @@ func (c *containers) stopAllContainers() error { return fmt.Errorf("failed at listing pods %w", err) } if len(pods) > 0 { - if err := removeMount("kubelet/pods"); err != nil { - errs = append(errs, err) - } if err := removeMount("run/netns"); err != nil { errs = append(errs, err) }