mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Remove the check for a gluster specific binary in 'canSupport'. Causes problems in containerized kube.
This commit is contained in:
parent
58783bc256
commit
61f6c3bc13
@ -61,15 +61,8 @@ func (plugin *glusterfsPlugin) CanSupport(spec *volume.Spec) bool {
|
|||||||
(spec.Volume != nil && spec.Volume.Glusterfs == nil) {
|
(spec.Volume != nil && spec.Volume.Glusterfs == nil) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
// see if glusterfs mount helper is there
|
|
||||||
// this needs a ls because the plugin container may be on a filesystem
|
return true
|
||||||
// that is not visible to the volume plugin process.
|
|
||||||
_, err := plugin.execCommand("ls", []string{"/sbin/mount.glusterfs"})
|
|
||||||
if err == nil {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user