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.
This commit is contained in:
@@ -68,9 +68,10 @@ type VolumePlugin interface {
|
||||
// depend on this.
|
||||
Init(host VolumeHost) error
|
||||
|
||||
// Name returns the plugin's name. Plugins should use namespaced names
|
||||
// such as "example.com/volume". The "kubernetes.io" namespace is
|
||||
// reserved for plugins which are bundled with kubernetes.
|
||||
// Name returns the plugin's name. Plugins must use namespaced names
|
||||
// such as "example.com/volume" and contain exactly one '/' character.
|
||||
// The "kubernetes.io" namespace is reserved for plugins which are
|
||||
// bundled with kubernetes.
|
||||
GetPluginName() string
|
||||
|
||||
// GetVolumeName returns the name/ID to uniquely identifying the actual
|
||||
|
||||
Reference in New Issue
Block a user