Skip to content

Commit

Permalink
Don't delete pods when stopping containers on reset
Browse files Browse the repository at this point in the history
k0s reset will delete any leftovers safely when deleting directories.

Signed-off-by: Natanael Copa <[email protected]>
(cherry picked from commit 12aa906)
  • Loading branch information
ncopa authored and github-actions[bot] committed Nov 29, 2024
1 parent aeea4ff commit 62de5e6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/cleanup/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 62de5e6

Please sign in to comment.