Merge pull request #57293 from linyouchong/linyouchong-20171218
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix accessmode mapping error What this PR does / why we need it: fix accessmode mapping error in csi_client.go `// can be mounted in read-only mode to many hosts` `ReadOnlyMany PersistentVolumeAccessMode = "ReadOnlyMany"` I think api.ReadOnlyMany should be mapping to csipb.VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY Which issue this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes # NONE Special notes for your reviewer: NONE Release note: NONE
This commit is contained in:
		| @@ -217,7 +217,7 @@ func asCSIAccessMode(am api.PersistentVolumeAccessMode) csipb.VolumeCapability_A | ||||
| 	case api.ReadWriteOnce: | ||||
| 		return csipb.VolumeCapability_AccessMode_SINGLE_NODE_WRITER | ||||
| 	case api.ReadOnlyMany: | ||||
| 		return csipb.VolumeCapability_AccessMode_MULTI_NODE_SINGLE_WRITER | ||||
| 		return csipb.VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY | ||||
| 	case api.ReadWriteMany: | ||||
| 		return csipb.VolumeCapability_AccessMode_MULTI_NODE_MULTI_WRITER | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Submit Queue
					Kubernetes Submit Queue