Merge pull request #44327 from NickrenREN/vsphere-util

Automatic merge from submit-queue

Using BetaStorageClassAnnotation to avoid hardcode

**Release note**:
```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-04-11 10:34:09 -07:00 committed by GitHub
commit c826c5a1b8

View File

@ -203,7 +203,7 @@ func getVSphereStorageClassSpec(name string, scParameters map[string]string) *st
func getVSphereClaimSpecWithStorageClassAnnotation(ns string, storageclass *storage.StorageClass) *v1.PersistentVolumeClaim {
scAnnotation := make(map[string]string)
scAnnotation["volume.beta.kubernetes.io/storage-class"] = storageclass.Name
scAnnotation[v1.BetaStorageClassAnnotation] = storageclass.Name
claim := &v1.PersistentVolumeClaim{
ObjectMeta: metav1.ObjectMeta{