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)
(cherry picked from commit 62de5e6)
  • Loading branch information
ncopa authored and twz123 committed Dec 11, 2024
1 parent a96c8db commit 40e07bf
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 @@ -153,9 +153,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 {
msg = append(msg, err)
}
if err := removeMount("run/netns"); err != nil {
msg = append(msg, err)
}
Expand Down

0 comments on commit 40e07bf

Please sign in to comment.