Remove the check for a gluster specific binary in 'canSupport'. Causes problems in containerized kube.

pull/6/head
childsb 2016-02-23 09:40:35 -06:00
parent 58783bc256
commit 61f6c3bc13
1 changed files with 2 additions and 9 deletions

View File

@ -61,15 +61,8 @@ func (plugin *glusterfsPlugin) CanSupport(spec *volume.Spec) bool {
(spec.Volume != nil && spec.Volume.Glusterfs == nil) {
return false
}
// see if glusterfs mount helper is there
// this needs a ls because the plugin container may be on a filesystem
// that is not visible to the volume plugin process.
_, err := plugin.execCommand("ls", []string{"/sbin/mount.glusterfs"})
if err == nil {
return true
}
return false
return true
}