-
Notifications
You must be signed in to change notification settings - Fork 41.1k
client-go/features: introduce WatchListClient feature gate #122571
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
client-go/features: introduce WatchListClient feature gate #122571
Conversation
/assign @wojtek-t |
f1b5031
to
f8f186e
Compare
f8f186e
to
37cbf53
Compare
002df8b
to
a630801
Compare
/assign @deads2k |
// across the file. | ||
|
||
// owner: @p0lyn0mial | ||
// alpha: v1.27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't have this FG in 1.27 in client-go.
In fact, you're saying that client-side you're going directly to beta, which I'm fine with [given we gated the logic differently before and it's already there].
But let's not pretend that we had a FG before we actually added it :)
So let's remove it.
@deads2k - FYI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm, pushed.
a630801
to
a442193
Compare
/lgtm In case @deads2k wants to take a look too |
LGTM label has been added. Git tree hash: f4d4cff453760b573395aea9d4afb94ea120cf80
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: p0lyn0mial, wojtek-t 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 |
// NOTE: | ||
// The feature is disabled in Beta by default because | ||
// it will only be turned on for selected control plane component(s). | ||
WatchList Feature = "WatchListClient" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Match the featurename please. WatchListClient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
np, updated the featurename.
// defaultKubernetesFeatureGates consists of all known Kubernetes-specific feature keys. | ||
// | ||
// To add a new feature, define a key for it above and add it here. The features will be | ||
// available throughout Kubernetes binaries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't appear to be true yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't appear to be true yet.
I'd be ok having the comment match reality and the first wiring will use the env var impl.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, updated the comment.
a442193
to
7773b0f
Compare
@p0lyn0mial: The following test failed, say
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/test-infra repository. I understand the commands that are listed here. |
/lgtm |
LGTM label has been added. Git tree hash: fa3ceceb0af264cb963050637ab2d20999f62617
|
/triage accepted |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR introduces
WatchListClient
feature gate to client-go.The gate will be used by
KCM
to enable the streaming feature.It allows the client to get a stream of individual items instead of chunking from the server.
Which issue(s) this PR fixes:
xref: kubernetes/enhancements#3157
Special notes for your reviewer:
First we need #122555
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: