Commit 02231ea7 authored by Victor Marmol's avatar Victor Marmol

Merge pull request #7503 from jsafrane/devel/fix-volume-rm

Fixed kubelet deleting data from volumes on stop (#7317).
parents 40718685 9b9e98a2
...@@ -1448,12 +1448,6 @@ func (kl *Kubelet) killUnwantedPods(desiredPods map[types.UID]empty, ...@@ -1448,12 +1448,6 @@ func (kl *Kubelet) killUnwantedPods(desiredPods map[types.UID]empty,
glog.Errorf("Failed killing the pod %q: %v", pod.Name, err) glog.Errorf("Failed killing the pod %q: %v", pod.Name, err)
return return
} }
// Remove the pod directory.
err = os.RemoveAll(kl.getPodDir(pod.ID))
if err != nil {
glog.Errorf("Failed removing pod directory for %q", pod.Name)
return
}
}(pod, ch) }(pod, ch)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment