Skip to content

Commit

Permalink
Merge pull request #5954 from olivierlemasle/storageclassannot
Browse files Browse the repository at this point in the history
Remove depreacted annotation storageclass.beta.kubernetes.io
  • Loading branch information
tstromberg authored Dec 9, 2019
2 parents eb1bc2c + 99350b3 commit 66d7124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
kubernetes.io/minikube-addons: storage-provisioner-gluster
addonmanager.kubernetes.io/mode: EnsureExists
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
storageclass.kubernetes.io/is-default-class: "true"
provisioner: gluster.org/glusterfile
reclaimPolicy: Delete
parameters:
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/storageclass/storageclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

func annotateDefaultStorageClass(storage storagev1.StorageV1Interface, class *v1.StorageClass, enable bool) error {
isDefault := strconv.FormatBool(enable)
metav1.SetMetaDataAnnotation(&class.ObjectMeta, "storageclass.beta.kubernetes.io/is-default-class", isDefault)
metav1.SetMetaDataAnnotation(&class.ObjectMeta, "storageclass.kubernetes.io/is-default-class", isDefault)
_, err := storage.StorageClasses().Update(class)

return err
Expand Down

0 comments on commit 66d7124

Please sign in to comment.