Support ceph rbd resize

This commit is contained in:
NickrenREN
2017-09-20 14:33:27 +08:00
parent b18d86d5cc
commit 6f7a1983ef
6 changed files with 213 additions and 26 deletions

View File

@@ -149,10 +149,7 @@ func (pvcr *persistentVolumeClaimResize) allowResize(pvc, oldPvc *api.Persistent
// checkVolumePlugin checks whether the volume plugin supports resize
func (pvcr *persistentVolumeClaimResize) checkVolumePlugin(pv *api.PersistentVolume) bool {
if pv.Spec.Glusterfs != nil {
return true
}
if pv.Spec.Cinder != nil {
if pv.Spec.Glusterfs != nil || pv.Spec.Cinder != nil || pv.Spec.RBD != nil {
return true
}
return false