Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot disable default storage class #5953

Closed
olivierlemasle opened this issue Nov 20, 2019 · 1 comment · Fixed by #5954
Closed

Cannot disable default storage class #5953

olivierlemasle opened this issue Nov 20, 2019 · 1 comment · Fixed by #5954
Assignees
Labels
area/storage storage bugs kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@olivierlemasle
Copy link
Member

olivierlemasle commented Nov 20, 2019

Steps to reproduce:

  1. Start minikube (from scratch)
  2. Disable addon :
    > minikube addons disable default-storageclass
    ✅  "default-storageclass" was successfully disabled
    
  3. List storage classes:
    > kubectl get storageclasses.storage.k8s.io 
    NAME                 PROVISIONER                AGE
    standard (default)   k8s.io/minikube-hostpath   4m14s
    

Bug: standard storage class is still marked as default.

Actually, the storage class is then annotated with both storageclass.kubernetes.io/is-default-class: "true" (from the addon) and storageclass.beta.kubernetes.io/is-default-class: "false" (added with minikube addons disable default-storageclass):

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    storageclass.beta.kubernetes.io/is-default-class: "false"
    storageclass.kubernetes.io/is-default-class: "true"
  creationTimestamp: "2019-11-20T12:40:29Z"
  labels:
    addonmanager.kubernetes.io/mode: EnsureExists
  name: standard
  resourceVersion: "600"
  selfLink: /apis/storage.k8s.io/v1/storageclasses/standard
  uid: cdef4691-5dc5-42c5-8e02-db45e4b4265c
provisioner: k8s.io/minikube-hostpath
reclaimPolicy: Delete
volumeBindingMode: Immediate

Minikube version: v1.5.2

Kubernetes version: v1.16.2

@tstromberg
Copy link
Contributor

Nice catch! Thank you for sending us a PR to address this.

@tstromberg tstromberg added area/storage storage bugs kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/storage storage bugs kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants