-
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
Add bootstrap policy for HPA metrics REST clients #52572
Add bootstrap policy for HPA metrics REST clients #52572
Conversation
Since we weren't running the HPA with metrics REST clients by default, we had no bootstrap policy enabling the HPA controller to talk to the metrics APIs. This adds permissions for the HPA controller to talk list pods.metrics.k8s.io, and list any resource in custom.metrics.k8s.io.
cc @kubernetes/sig-autoscaling-pr-reviews |
At first glance this appears to overlaps with #52553 is there a reason there are two PRs open? |
@ericchiang this should get accepted into the release in either case -- it's a simple case of missing policy. I wasn't sure if the other one (#52553) would get accepted this late into the release (because it's a "if you have an existing setup and don't do the upgrade properly you'll break your HPA"), so I figured this should have a stand-alone PR just in case |
/retest |
Role changes lgtm (assuming they've been tested) /lgtm |
/assign @liggitt |
/approve |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: DirectXMan12, ericchiang, liggitt No associated issue. Update pull-request body to add a reference to an issue, or get approval with The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
1 similar comment
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.. |
Since we weren't running the HPA with metrics REST clients by default,
we had no bootstrap policy enabling the HPA controller to talk to the
metrics APIs.
This adds permissions for the HPA controller to talk list
pods.metrics.k8s.io, and list any resource in custom.metrics.k8s.io.