Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Use StorageClassName for PV/PVC in charts #1869

Closed
gyliu513 opened this issue Aug 27, 2017 · 18 comments
Closed

Use StorageClassName for PV/PVC in charts #1869

gyliu513 opened this issue Aug 27, 2017 · 18 comments
Assignees
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. wontfix

Comments

@gyliu513
Copy link
Contributor

Is this a request for help?:


Is this a BUG REPORT or FEATURE REQUEST? (choose one):

In the Kubernetes 1.6 release, dynamic provisioning has been promoted to stable (having entered beta in 1.4). In 1.6, StorageClassName attribute has been added to PersistentVolume and PersistentVolumeClaim objects and should be used instead of annotation volume.beta.kubernetes.io/storage-class.

Version of Helm and Kubernetes:

Which chart:

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know:

@gyliu513
Copy link
Contributor Author

/cc @kubernetes/charts-maintainers

@gyliu513
Copy link
Contributor Author

metadata:
  annotations:
  {{- if .Values.server.persistentVolume.storageClass }}
    volume.beta.kubernetes.io/storage-class: {{ .Values.server.persistentVolume.storageClass | quote }}
  {{- else }}
    volume.alpha.kubernetes.io/storage-class: default
  {{- end }}

Do we need to maintain the alpha and beta here? In the Kubernetes 1.6 release, dynamic provisioning has been promoted to stable (having entered beta in 1.4). In 1.6, StorageClassName attribute has been added to PersistentVolume and PersistentVolumeClaim objects and should be used instead of annotation volume.beta.kubernetes.io/storage-class. The beta annotation is still working in this release, however it will be removed in a future release. Checkout here https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md#volumes-2 for detail.

@unguiculus
Copy link
Member

I agree that we should migrate. However, this is not an automatic process. PRs are welcome.

@gyliu513
Copy link
Contributor Author

@unguiculus why close this one? I may need to reference this if create some PRs.

@unguiculus unguiculus reopened this Aug 31, 2017
@unguiculus
Copy link
Member

Sorry, I reopened it.

@gyliu513
Copy link
Contributor Author

@kubernetes/charts-maintainers I'm going to remove volume.alpha.kubernetes.io/storage-class and volume.beta.kubernetes.io/storage-class but use StorageClassName for all charts, please show your comments if any. Thanks.

@unguiculus
Copy link
Member

Please make sure you create separate PRs per chart. Thanks.

@gyliu513
Copy link
Contributor Author

gyliu513 commented Sep 2, 2017

/assign

@unguiculus
Copy link
Member

Please use #1332 as reference.

@gyliu513
Copy link
Contributor Author

gyliu513 commented Sep 3, 2017

Thanks @unguiculus , also mark helm/helm#2600 as related.

@gyliu513
Copy link
Contributor Author

gyliu513 commented Sep 6, 2017

@prydonius @unguiculus all of the charts are now updated, please help review. Thanks!

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 4, 2018
@gyliu513
Copy link
Contributor Author

gyliu513 commented Jan 5, 2018

/remove-lifecycle stale

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 5, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 5, 2018
@gyliu513
Copy link
Contributor Author

gyliu513 commented May 7, 2018

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label May 7, 2018
@stale
Copy link

stale bot commented Aug 8, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Activing will cause the issue to no longer be considered stale. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 8, 2018
@mattfarina mattfarina added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 10, 2018
@stale
Copy link

stale bot commented Aug 24, 2018

This issue is being automatically closed due to inactivity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. wontfix
Projects
None yet
Development

No branches or pull requests

5 participants