mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
fix error set csiplugin attachable
This commit is contained in:
parent
661e4d5b38
commit
87243f49a4
@ -398,7 +398,7 @@ func (asw *actualStateOfWorld) addVolume(
|
|||||||
}
|
}
|
||||||
|
|
||||||
pluginIsAttachable := false
|
pluginIsAttachable := false
|
||||||
if _, ok := volumePlugin.(volume.AttachableVolumePlugin); ok {
|
if thePlugin, err := asw.volumePluginMgr.FindAttachablePluginBySpec(volumeSpec); err != nil && thePlugin != nil {
|
||||||
pluginIsAttachable = true
|
pluginIsAttachable = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user