k3s/pkg/kubelet/volumemanager/reconciler
Kubernetes Submit Queue 9fe565aba5
Merge pull request #61071 from jingxu97/Mar/podvolumerace
Automatic merge from submit-queue (batch tested with PRs 61203, 61071). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix issue with race condition during pod deletion

This PR fixes two issues
1. When desired_state_populator removes podvolume state, it should check
whether the actual state already has the volume before deleting it to
make sure actual state has a chance to add the volume into the state
2. When checking podVolume still exists, it not only checks the actual
state, but also the volume disk directory because actual state might not
reflect the real world when kubelet starts.

fixes issue #60645
2018-03-15 17:23:04 -07:00
..
BUILD update bazel 2018-02-27 20:23:36 +08:00
reconciler.go Merge pull request #61071 from jingxu97/Mar/podvolumerace 2018-03-15 17:23:04 -07:00
reconciler_test.go Lock subPath volumes 2018-03-05 09:14:44 +01:00