-
Notifications
You must be signed in to change notification settings - Fork 4k
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 subresource status for vpa #5680
Conversation
|
Welcome @wu0407! |
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.
Good catch, thanks! Just a few comments from my side, mostly dealing with semantics.
50653fb
to
2a42654
Compare
Thanks for the changes! The only thing missing from my side is a release note pointing people to the new, required permissions. There are lots of people using different means to deploy the VPA (e.g. Helm charts or home-grown scripts/code), we need to point them and the maintainers of these solutions to the changes they need to make to their solutions.
@jbartosik: I don't think we're adding these release notes automatically to the github releases yet, but I guess this would be helpful when compiling the release notes? WDYT? |
Release notes from PR descriptions aren't automatically added to Github releases. But they make writing release notes easier. Please add |
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.
Also if I understand correctly the point here is that there will be user-visible API change.
Could you explain what will change? It's not clear to me from reading the isse
Please fix the commit message. I think you can't reference issues / PRs in commit messages. You can (and should and do) do that in PR mesages |
I don't think anything will change for users, except that currently For operators, though, we need to ensure that they update CRD, RBAC rules and VPA version at the same time, otherwise this will just stop working. |
f27c02c
to
b8df346
Compare
Added detail what to do in this pr and commit |
Add status field in subresource on crd yaml and add new ClusterRole system:vpa-actor to patch /status subresource. The `metadata.generation` only increase on vpa spec update.
b8df346
to
8e72470
Compare
The release notes look good so far, they just need to mention that operators also need to update their CRD. Sorry I missed that in the first suggestion I had about the notes. |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mwielgus, wu0407 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?
What this PR does / why we need it:
Current vpa crd has empty subresource field, that leads to metadata.generation increase on vpa status update.
The controller-runtime has GenerationChangedPredicate to filter out update status event for cr, but it not work for vpa.
This PR add status field in subresource on crd yaml and add new ClusterRole system:vpa-actor to patch /status subresource.
The
metadata.generation
only increase on vpa spec update.Which issue(s) this PR fixes:
Fixes: #5675
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: