We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d2205f + 2e2d084 commit 27df218Copy full SHA for 27df218
cmd/kubeadm/app/cmd/phases/reset/unmount_linux.go
@@ -32,6 +32,12 @@ func unmountKubeletDirectory(absoluteKubeletRunDirectory string) error {
32
if err != nil {
33
return err
34
}
35
+
36
+ if !strings.HasSuffix(absoluteKubeletRunDirectory, "/") {
37
+ // trailing "/" is needed to ensure that possibly mounted /var/lib/kubelet is skipped
38
+ absoluteKubeletRunDirectory += "/"
39
+ }
40
41
mounts := strings.Split(string(raw), "\n")
42
for _, mount := range mounts {
43
m := strings.Split(mount, " ")
0 commit comments