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

graduate RetroactiveDefaultStorageClass feature to GA in 1.28 #118102

Merged
merged 4 commits into from Jun 28, 2023

Conversation

RomanBednar
Copy link
Contributor

@RomanBednar RomanBednar commented May 18, 2023

What type of PR is this?

/kind feature

What this PR does / why we need it:

Graduate RetroactiveDefaultStorageClass featrue to GA in 1.28.

Which issue(s) this PR fixes:

Fixes # - N/A

Special notes for your reviewer:

Does this PR introduce a user-facing change?

RetroactiveDefaultStorageClass feature is stable and enabled by default.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

- [KEP]: https://github.com/kubernetes/enhancements/issues/3333
- [Other doc]: https://github.com/kubernetes/enhancements/pull/4021
- [Other doc]: https://github.com/kubernetes/website/pull/41206

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 18, 2023
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the needs-priority Indicates a PR lacks a `priority/foo` label and requires one. label May 18, 2023
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/test sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels May 18, 2023
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 19, 2023
@RomanBednar
Copy link
Contributor Author

/retest

@carlory
Copy link
Member

carlory commented May 29, 2023

/cc @wojtek-t @smarterclayton

@carlory
Copy link
Member

carlory commented May 31, 2023

@RomanBednar As the feature-gate GAed and locked to default, we need also remove the EnableRetroactiveDefaultStorageClass field from the PersistentVolumeClaimSpecValidationOptions struct.

https://github.com/kubernetes/kubernetes/pull/111467/files#diff-c713e8919642d873fdf48fe8fb6d43e5cb2f53fd601066ff53580ea655948f0dR2031

On the other hand, we need remove the feature-gate checked in the pv controller.

https://github.com/kubernetes/kubernetes/pull/111467/files#diff-9a553e2f939f7ad1470cfe1cf8a48b56b39c6b34fb7ad820c79f2f43602499bdR354

@RomanBednar RomanBednar force-pushed the retro-sc-assignment-ga branch 2 times, most recently from 9479541 to 52f0a81 Compare June 2, 2023 14:06
@carlory
Copy link
Member

carlory commented Jun 3, 2023

/test pull-kubernetes-e2e-storage-kind-disruptive

@RomanBednar
Copy link
Contributor Author

@RomanBednar As the feature-gate GAed and locked to default, we need also remove the EnableRetroactiveDefaultStorageClass field from the PersistentVolumeClaimSpecValidationOptions struct.

https://github.com/kubernetes/kubernetes/pull/111467/files#diff-c713e8919642d873fdf48fe8fb6d43e5cb2f53fd601066ff53580ea655948f0dR2031

On the other hand, we need remove the feature-gate checked in the pv controller.

https://github.com/kubernetes/kubernetes/pull/111467/files#diff-9a553e2f939f7ad1470cfe1cf8a48b56b39c6b34fb7ad820c79f2f43602499bdR354

@carlory Thank you for pointing that out. I'm aware of this but thought that a full cleanup of the featuregate should be done one release after GA (so 1.29) to keep a way to opt-out for one more release in case something goes wrong. If this is not desired procedure please let me know, but at this point I don't see any advantage of doing the full cleanup in 1.28.

@carlory
Copy link
Member

carlory commented Jun 5, 2023

At present, I have not found a requirement document that must do a comprehensive cleanup. This seems to be a common practice, for example:

I think it's reasonable, when a feature is stable, to remove the feature-gate control of the code, to ensure that the feature is tested as expected by testing. When the feature-gate is removed in the next version, there will be no additional Code changes, which means there are no other risks

@RomanBednar
Copy link
Contributor Author

@carlory According to Kubernetes deprecation policy the feature gate must function for not less than 6 months or 2 releases (whichever is longer) when transitioning from Beta to GA.

https://kubernetes.io/docs/reference/using-api/deprecation-policy/#deprecation

@carlory
Copy link
Member

carlory commented Jun 6, 2023

@RomanBednar IMO, we need remove the feature-gate check logic, but remain the feature-gate existing in the command line in order to make the binary work when users specify the feature-gate as same as the default value util the deprecation window is complete.

If the feature-gate isn't locked to default, we need also remain the feature-gate check logic. because users can choose turn off/on a feature.

@RomanBednar
Copy link
Contributor Author

@carlory Ah I see now, I'll do the cleanup then. Thanks!

Since the feature is GA and locked to true, tests can no longer set it
to false. Cleaning up by removing all references to this feature gate
from tests.

Feature gate will be removed in v1.29.
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 7, 2023
@jsafrane
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 23, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 80a5f20b26b6097f0cafeb38fd842fa113810026

@msau42
Copy link
Member

msau42 commented Jun 28, 2023

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsafrane, msau42, RomanBednar

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 28, 2023
@k8s-ci-robot k8s-ci-robot merged commit 960830b into kubernetes:master Jun 28, 2023
18 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.28 milestone Jun 28, 2023
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. area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants