-
Notifications
You must be signed in to change notification settings - Fork 94
Delete k0s binaries from hosts after reset #928
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
Merged
Merged
+35
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
These are there after a k0s install + reset: --- /tmp/tree_before.txt 2025-08-27 13:25:41.881114641 +0000
+++ /tmp/tree_after.txt 2025-08-27 13:26:18.136096634 +0000
@@ -49,6 +49,8 @@
+/etc/cni
+/etc/cni/net.d
+/etc/k0s
+/etc/k0s/containerd.d
+/etc/k0s/containerd.toml
+/opt/containerd
+/opt/containerd/bin
+/opt/containerd/lib
+/root/.kube
+/root/.kube/cache
+/root/.kube/cache/discovery
+/root/.kube/cache/discovery/localhost_6443
+/root/.kube/cache/discovery/localhost_6443/admissionregistration.k8s.io
+/root/.kube/cache/discovery/localhost_6443/admissionregistration.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/admissionregistration.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/apiextensions.k8s.io
+/root/.kube/cache/discovery/localhost_6443/apiextensions.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/apiextensions.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/apiregistration.k8s.io
+/root/.kube/cache/discovery/localhost_6443/apiregistration.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/apiregistration.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/apps
+/root/.kube/cache/discovery/localhost_6443/apps/v1
+/root/.kube/cache/discovery/localhost_6443/apps/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/authentication.k8s.io
+/root/.kube/cache/discovery/localhost_6443/authentication.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/authentication.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/authorization.k8s.io
+/root/.kube/cache/discovery/localhost_6443/authorization.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/authorization.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/autoscaling
+/root/.kube/cache/discovery/localhost_6443/autoscaling/v1
+/root/.kube/cache/discovery/localhost_6443/autoscaling/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/autoscaling/v2
+/root/.kube/cache/discovery/localhost_6443/autoscaling/v2/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/batch
+/root/.kube/cache/discovery/localhost_6443/batch/v1
+/root/.kube/cache/discovery/localhost_6443/batch/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/certificates.k8s.io
+/root/.kube/cache/discovery/localhost_6443/certificates.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/certificates.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/coordination.k8s.io
+/root/.kube/cache/discovery/localhost_6443/coordination.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/coordination.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/discovery.k8s.io
+/root/.kube/cache/discovery/localhost_6443/discovery.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/discovery.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/etcd.k0sproject.io
+/root/.kube/cache/discovery/localhost_6443/etcd.k0sproject.io/v1beta1
+/root/.kube/cache/discovery/localhost_6443/etcd.k0sproject.io/v1beta1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/events.k8s.io
+/root/.kube/cache/discovery/localhost_6443/events.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/events.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/flowcontrol.apiserver.k8s.io
+/root/.kube/cache/discovery/localhost_6443/flowcontrol.apiserver.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/flowcontrol.apiserver.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/helm.k0sproject.io
+/root/.kube/cache/discovery/localhost_6443/helm.k0sproject.io/v1beta1
+/root/.kube/cache/discovery/localhost_6443/helm.k0sproject.io/v1beta1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/networking.k8s.io
+/root/.kube/cache/discovery/localhost_6443/networking.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/networking.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/node.k8s.io
+/root/.kube/cache/discovery/localhost_6443/node.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/node.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/policy
+/root/.kube/cache/discovery/localhost_6443/policy/v1
+/root/.kube/cache/discovery/localhost_6443/policy/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/rbac.authorization.k8s.io
+/root/.kube/cache/discovery/localhost_6443/rbac.authorization.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/rbac.authorization.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/scheduling.k8s.io
+/root/.kube/cache/discovery/localhost_6443/scheduling.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/scheduling.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/servergroups.json
+/root/.kube/cache/discovery/localhost_6443/storage.k8s.io
+/root/.kube/cache/discovery/localhost_6443/storage.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/storage.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/v1
+/root/.kube/cache/discovery/localhost_6443/v1/serverresources.json
+/root/.kube/cache/http
+/root/.kube/cache/http/.diskv-temp
+/root/.kube/cache/http/50de1e185cf10ab2d914ea21235bf424941a50e263da1cd059c26198c4c8e6b5
+/root/.kube/cache/http/6749ec1e5d659d5fd49317553e2097b89e8e78776035a2c1c5cc05296caf07a8 |
Danil-Grigorev
approved these changes
Aug 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #930
Remove the k0s binaries from targets after k0s reset.