Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleans up all containerd-related resources on snap removal #827

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

claudiubelu
Copy link
Contributor

Currently, when removing the snap, the /var/run/containerd folder is not properly removed, as it is a folder. This fixes this issue.

Additionally removes other containerd-related folders: /etc/containerd and /var/lib/containerd.

We're also removing /opt/cni/bin on snap removal, which is created when bootstrapping the node. As we're removing the k8s snap, we no longer need this folder either.

Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@claudiubelu claudiubelu force-pushed the fixes-containerd-cleanup branch 3 times, most recently from 0a5091c to dc330e9 Compare November 22, 2024 06:37
Currently, when removing the snap, the /var/run/containerd folder is not
properly removed, as it is a folder. This fixes this issue.

Additionally removes other containerd-related folders: /etc/containerd
and /var/lib/containerd.

We're also removing /opt/cni/bin on snap removal, which is created when
bootstrapping the node. As we're removing the k8s snap, we no longer
need this folder either.
@bschimke95 bschimke95 merged commit 376da2b into canonical:main Nov 22, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants