Merge pull request #75844 from vladimirvivien/volume-skip-device-mount

Volume DeviceMountablePlugin.CanDeviceMount check when retrieving plugins
This commit is contained in:
Kubernetes Prow Robot
2019-03-29 13:02:13 -07:00
committed by GitHub
15 changed files with 68 additions and 1 deletions

View File

@@ -312,6 +312,10 @@ func (plugin *TestPlugin) CanAttach(spec *volume.Spec) bool {
return true
}
func (plugin *TestPlugin) CanDeviceMount(spec *volume.Spec) (bool, error) {
return true, nil
}
func (plugin *TestPlugin) NewDeviceUnmounter() (volume.DeviceUnmounter, error) {
return plugin.NewDetacher()
}