Skip to content

Commit

Permalink
Merge pull request #51226 from vmware/automated-cherry-pick-of-#51066…
Browse files Browse the repository at this point in the history
…-upstream-release-1.7

Automatic merge from submit-queue

Automated cherry pick of #51066 upstream release 1.7

Cherry pick of #51066 on release-1.7:

#51066: Allow attach of volumes to multiple nodes for vSphere

@rohitjogvmw  @divyenpatel @tusharnt @luomiao 

```release-note
vSphere: Allow attach of volumes to multiple nodes for vSphere.
```
  • Loading branch information
Kubernetes Submit Queue committed Aug 25, 2017
2 parents f3ecd68 + 8d8e7c1 commit b9ec9ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/volume/attachdetach/reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ func (rc *reconciler) isMultiAttachForbidden(volumeSpec *volume.Spec) bool {
// Only if this volume is a persistent volume, we have reliable information on wether it's allowed or not to
// multi-attach. We trust in the individual volume implementations to not allow unsupported access modes
if volumeSpec.PersistentVolume != nil {
// Check for persistent volume types which do not fail when trying to multi-attach
if volumeSpec.PersistentVolume.Spec.VsphereVolume != nil {
return false
}

if len(volumeSpec.PersistentVolume.Spec.AccessModes) == 0 {
// No access mode specified so we don't know for sure. Let the attacher fail if needed
return false
Expand Down

0 comments on commit b9ec9ac

Please sign in to comment.