• Kubernetes Submit Queue's avatar
    Merge pull request #61071 from jingxu97/Mar/podvolumerace · 9fe565ab
    Kubernetes Submit Queue authored
    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
    9fe565ab
Name
Last commit
Last update
..
BUILD Loading commit data...
reconciler.go Loading commit data...
reconciler_test.go Loading commit data...