-
Notifications
You must be signed in to change notification settings - Fork 40k
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
resourcequota: use singleflight.Group to reduce apiserver load #124163
resourcequota: use singleflight.Group to reduce apiserver load #124163
Conversation
Please note that we're already in Test Freeze for the Fast forwards are scheduled to happen every 6 hours, whereas the most recent run was: Wed Apr 3 02:18:49 UTC 2024. |
Welcome @flavianmissi! |
Hi @flavianmissi. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/sig apps |
/ok-to-test |
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Show resolved
Hide resolved
dbc3cc2
to
59258ae
Compare
I believe I have addressed all the review comments - PTAL when you have a moment. |
lgtm |
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go
Outdated
Show resolved
Hide resolved
0daa128
to
e13ff5e
Compare
/lgtm |
LGTM label has been added. Git tree hash: b719be2888be0939c87a1e863da51b359249d8a1
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flavianmissi, liggitt 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 cleanup
/kind flake
What this PR does / why we need it:
Wraps up the code that requests the apiserver directly (without a lister) with a
singleflight.Group
.This conforms to how the limit range admission plugin makes requests to the apiserver.
I'm also hoping this will fix a flaky replica set test, but since I can't reproduce the flake I cannot be sure.
Which issue(s) this PR fixes:
Relates to #22422 and #123806.
And inspired by #112696 and #114919.
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: