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

Mark BetaStorageClassAnnotation as deprecated #53580

Merged

Conversation

xiangpengzhao
Copy link
Contributor

@xiangpengzhao xiangpengzhao commented Oct 9, 2017

What this PR does / why we need it:
Mark BetaStorageClassAnnotation as deprecated.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
ref: #51440
#51440 (comment)

Special notes for your reviewer:
/cc @wongma7 @msau42

Release note:

action required: The `volume.beta.kubernetes.io/storage-class` annotation is deprecated. It will be removed in a future release. For the StorageClass API object, use v1, and in place of the annotation use `v1.PersistentVolumeClaim.Spec.StorageClassName` and `v1.PersistentVolume.Spec.StorageClassName` instead.

@k8s-ci-robot k8s-ci-robot added release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 9, 2017
@k8s-github-robot k8s-github-robot added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label Oct 9, 2017
@xiangpengzhao
Copy link
Contributor Author

/cc @jsafrane

@jsafrane
Copy link
Member

  • release note should mention also PersistentVolume, it had beta annotation too
  • IMO, we should deprecate also storage.k8s.io/v1beta1 API too

@xiangpengzhao
Copy link
Contributor Author

@jsafrane release note updated. PTAL. Thanks!
BTW, I don't find where to mark storage.k8s.io/v1beta1 as deprecated in the code... Is it OK to just mark it in the release note?

@xiangpengzhao
Copy link
Contributor Author

/cc @kubernetes/sig-storage-pr-reviews

@k8s-ci-robot k8s-ci-robot added the sig/storage Categorizes an issue or PR as relevant to SIG Storage. label Oct 31, 2017
@jsafrane
Copy link
Member

/assign

@jsafrane
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 31, 2017
@xiangpengzhao
Copy link
Contributor Author

Thanks @jsafrane !

kindly ping api-approvers @liggitt @lavalamp

@xiangpengzhao
Copy link
Contributor Author

/assign @erictune

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 9, 2017
@k8s-github-robot k8s-github-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Nov 10, 2017
@jsafrane
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 10, 2017
@jsafrane
Copy link
Member

/assign @thockin
for approval

@thockin
Copy link
Member

thockin commented Nov 13, 2017

/approve

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jsafrane, thockin, xiangpengzhao

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 13, 2017
@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 53580, 55568). If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit 9ce5d67 into kubernetes:master Nov 13, 2017
@xiangpengzhao xiangpengzhao deleted the deprecated-beta-sc branch November 13, 2017 05:41
@msau42
Copy link
Member

msau42 commented Dec 14, 2017

@jsafrane @saad-ali and I discussed. We're just going to deprecate the beta storageclass annotation and not the beta storageclass API object.

@xiangpengzhao
Copy link
Contributor Author

@msau42 thanks for notifying! I see the release notes doc has been updated, so I also update the release note block in this PR to make it consistence with that.

@george-angel
Copy link
Contributor

george-angel commented Dec 19, 2017

What is the upgrade path for this?

We cannot remove the annotation, as its immutable: * spec: Forbidden: field is immutable after creation nor can we add the StorateClassName to the spec: The PersistentVolumeClaim "********" is invalid: spec: Forbidden: field is immutable after creation.

So I don't see how we can match our version of the manifest to the one thats currently running in the cluster.

@jsafrane
Copy link
Member

jsafrane commented Jan 11, 2018

@george-angel, good catch, I created #58147 so we don't forget to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants