-
Notifications
You must be signed in to change notification settings - Fork 40.9k
apiserver/storage/cacher/listwatcher: error when the WatchList FG is disabled #132497
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
apiserver/storage/cacher/listwatcher: error when the WatchList FG is disabled #132497
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
/assign @wojtek-t |
// in such a case, client-go is going to fall back to a standard LIST on any error | ||
// returned for watch-list requests | ||
if isWatchListRequest(opts) && !utilfeature.DefaultFeatureGate.Enabled(features.WatchList) { | ||
return nil, fmt.Errorf("sendInitialEvents is forbidden for watch unless the WatchList feature gate is enabled") |
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.
I'm not sure if this is the best place to add this check. The reasoning in the comment.
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.
If it's only about cacher listerwatcher (which I believe is the case), I would rather put it directly in listerWatcher here:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/storage/cacher/lister_watcher.go#L87
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.
yes, this was something i also considered, ok, will move to the listwatcher.
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.
done.
3fca949
to
7e0d71f
Compare
/lgtm |
LGTM label has been added. Git tree hash: c489304929cb7ceabbb101fbf0afb0210c6e0b80
|
[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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR is related to:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: