Using BetaStorageClassAnnotation to avoid hardcode

pull/6/head
NickrenREN 2017-04-11 19:31:46 +08:00
parent e18843d353
commit 573fafbc29
1 changed files with 1 additions and 1 deletions

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{