Merge pull request #76151 from vladimirvivien/plugin-CanAttach-return-error

Ability for volume AttachablePlugin.CanAttach() to return both bool and error
This commit is contained in:
Kubernetes Prow Robot
2019-04-08 20:29:05 -07:00
committed by GitHub
16 changed files with 131 additions and 43 deletions

View File

@@ -308,8 +308,8 @@ func (plugin *TestPlugin) NewDetacher() (volume.Detacher, error) {
return &detacher, nil
}
func (plugin *TestPlugin) CanAttach(spec *volume.Spec) bool {
return true
func (plugin *TestPlugin) CanAttach(spec *volume.Spec) (bool, error) {
return true, nil
}
func (plugin *TestPlugin) CanDeviceMount(spec *volume.Spec) (bool, error) {