Skip to content

Commit 9b54021

Browse files
authored
Merge pull request kubernetes#81456 from fredkan/bugfix/error-config-attachable-plugin
Bugfix/error config attachable plugin
2 parents 1955467 + 67aeb09 commit 9b54021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubelet/volumemanager/cache/actual_state_of_world.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func (asw *actualStateOfWorld) addVolume(
398398
}
399399

400400
pluginIsAttachable := false
401-
if _, ok := volumePlugin.(volume.AttachableVolumePlugin); ok {
401+
if attachablePlugin, err := asw.volumePluginMgr.FindAttachablePluginBySpec(volumeSpec); err == nil && attachablePlugin != nil {
402402
pluginIsAttachable = true
403403
}
404404

0 commit comments

Comments
 (0)