mirror of https://github.com/k3s-io/k3s
VolumeSpec may be nil in volume reconstruction scenario
parent
139a13d312
commit
618917e210
|
@ -732,7 +732,7 @@ func (og *operationGenerator) GenerateUnmountVolumeFunc(
|
||||||
podsDir string) (volumetypes.GeneratedOperations, error) {
|
podsDir string) (volumetypes.GeneratedOperations, error) {
|
||||||
|
|
||||||
var pluginName string
|
var pluginName string
|
||||||
if useCSIPlugin(og.volumePluginMgr, volumeToUnmount.VolumeSpec) {
|
if volumeToUnmount.VolumeSpec != nil && useCSIPlugin(og.volumePluginMgr, volumeToUnmount.VolumeSpec) {
|
||||||
pluginName = csi.CSIPluginName
|
pluginName = csi.CSIPluginName
|
||||||
} else {
|
} else {
|
||||||
pluginName = volumeToUnmount.PluginName
|
pluginName = volumeToUnmount.PluginName
|
||||||
|
|
Loading…
Reference in New Issue