Skip to content

Commit

Permalink
Use beta default class annotation for default storageclass tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
msau42 committed Mar 15, 2017
1 parent fb243a4 commit 3fd61fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/volume_provisioning.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,12 @@ func updateDefaultStorageClass(c clientset.Interface, defaultStr string) {
Expect(err).NotTo(HaveOccurred())

if defaultStr == "" {
delete(sc.Annotations, storageutil.IsDefaultStorageClassAnnotation)
delete(sc.Annotations, storageutil.BetaIsDefaultStorageClassAnnotation)
} else {
if sc.Annotations == nil {
sc.Annotations = make(map[string]string)
}
sc.Annotations[storageutil.IsDefaultStorageClassAnnotation] = defaultStr
sc.Annotations[storageutil.BetaIsDefaultStorageClassAnnotation] = defaultStr
}

sc, err = c.StorageV1().StorageClasses().Update(sc)
Expand Down

0 comments on commit 3fd61fb

Please sign in to comment.