• Kubernetes Submit Queue's avatar
    Merge pull request #39732 from tsmetana/issue_34242 · db53e804
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 44722, 44704, 44681, 44494, 39732)
    
    Fix issue #34242: Attach/detach should recover from a crash
    
    When the attach/detach controller crashes and a pod with attached PV is deleted afterwards the controller will never detach the pod's attached volumes. To prevent this the controller should try to recover the state from the nodes status and figure out which volumes to detach. This requires some changes in the volume providers too: the only information available from the nodes is the volume name and the device path. The controller needs to find the correct volume plugin and reconstruct the volume spec just from the name. This required a small change also in the volume plugin interface.
    
    Fixes Issue #34242.
    cc: @jsafrane @jingxu97
    db53e804
Name
Last commit
Last update
..
attachdetach Loading commit data...
persistentvolume Loading commit data...
OWNERS Loading commit data...