Merge pull request #73789 from vladimirvivien/volume-plugin-can-attach

AttachableVolumePlugin CanAttach() method for attachable check
This commit is contained in:
Kubernetes Prow Robot
2019-02-08 09:06:17 -08:00
committed by GitHub
17 changed files with 128 additions and 21 deletions

View File

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