Skip to content

KEP-5241: Beta Feature Gate Promotion Requirements #5242

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Apr 14, 2025

  • One-line PR description: Features gates must include all functional, security, and testing requirements along with resolving all issues and gaps identified prior to being enabled by default.
  • Other comments:

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 14, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: deads2k
Once this PR has been reviewed and has the lgtm label, please assign kikisdeliveryservice for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 14, 2025
@deads2k deads2k changed the title KEP-5241: Requirements for feature gates enabled in production clusters by default KEP-5241: Beta Feature Gate Promotion Requirements Apr 14, 2025
@deads2k deads2k force-pushed the production-quality branch from d15bc9d to 3b33ffc Compare April 14, 2025 15:55
@k8s-ci-robot
Copy link
Contributor

@deads2k: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-enhancements-test 3b33ffc link true /test pull-enhancements-test
pull-enhancements-verify 3b33ffc link true /test pull-enhancements-verify

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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-sigs/prow repository. I understand the commands that are listed here.

## Proposal

Kubernetes feature gates have three levels: GA, Beta, and Alpha.
1. GA means that a feature gate is unconditionally enabled in all production kubernetes clusters and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have two levels here GA, and GA locked by default, without locked by default it can be disabled, right?

Comment on lines +186 to +188
2. Beta means that a feature gate is usually enabled in all production Kubernetes clusters by default
and that feature can be disabled.
Exceptions exist for entirely new APIs and some node features, but this broadly the case.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this tends to confuse readers and new developers not familiar with the the duality of API version v1alpha1, v1beta1, v1 / feature gate alpha,beta, GA and the coupling of both lifecycles. Since the restriction about beta apis disabled by default, that makes feature gates that are beta and depende on api beta versions disabled by default.
Beta features non dependent on beta APIs are usually enabled by default ??? I do not know well how to express this conundrum


Phasing in larger features over time can be done by bringing separate feature gates through alpha, beta, and GA.
Each feature gate needs to meet the beta and GA criteria for completeness, functional, security, and testing.
After meeting hte criteria for enabled by default, and at the sig's discretion, the new feature gate could be
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
After meeting hte criteria for enabled by default, and at the sig's discretion, the new feature gate could be
After meeting the criteria for enabled by default, and at the SIG's discretion, the new feature gate could be

in v1.Y broke under the same feature gate.

#### Who will make sure that new KEPs follow the promotion rules?
We'll adjust the KEP template to indicate the allowed criteria, so authors should notice.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only for new features. Authors of some existing KEP only notice if they actively sync with the KEP template (rarely done) or we announce this KEP here widely.

To balance these concerns, we are changing how we evaluate Beta and GA stability criteria.
The only valid GA criteria are “all issues and gaps identified as feedback during beta are resolved”.
Promotion from Beta to GA must be zero-diff for the release.
This means that Beta criteria must include all functional, security, and testing requirements along
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also add monitoring and I know that @lmktfy has mentioned satisfactory documentation in beta before we promote to GA.

@kikisdeliveryservice kikisdeliveryservice added the kind/template Categorizes changes to the KEP template label Apr 21, 2025
@kikisdeliveryservice kikisdeliveryservice added this to the v1.34 milestone Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory kind/template Categorizes changes to the KEP template sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. 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.

6 participants