Skip to content
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

Change default lease name for vpa-recommender to "vpa-recommender-lease" #7498

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

raywainman
Copy link
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

Changes the default lease name for the vpa-recommender to vpa-recommender-lease as this can sometimes conflict with managed deployments of HPA and VPA. See #7461.

Though changing the default here is possibly disruptive during upgrade, we believe it is the right path forward to avoid future outages. See the discussion in #7461 where we also discuss the possible scenarios during upgrade where there could temporarily be two leaders.

Which issue(s) this PR fixes:

#7461

Does this PR introduce a user-facing change?

- Changes the default vpa-recommender leader election lease name to `vpa-recommender-lease`. This CAN result in a situation where VPA would temporarily have two leaders during an upgrade operation. This should be harmless as the two VPA leaders would theoretically be writing the same recommendations. See #7461.

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. area/vertical-pod-autoscaler labels Nov 14, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 14, 2024
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 14, 2024
@raywainman
Copy link
Contributor Author

/assign @adrianmoisey
/assign @voelzmo
/assign @kwiesmueller

@adrianmoisey
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 14, 2024
@adrianmoisey
Copy link
Member

Oh,

resourceNames:
- vpa-recommender
also needs updating

Copy link
Member

@omerap12 omerap12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#7498 (comment)

To remove the lgtm label

@omerap12
Copy link
Member

/lgtm cancel

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 14, 2024
@omerap12
Copy link
Member

/assign @raywainman

@omerap12 omerap12 removed their assignment Nov 14, 2024
@adrianmoisey
Copy link
Member

@raywainman just a ping to remind you about this
I'm also happy to take it over if you don't have capacity

@raywainman
Copy link
Contributor Author

Thanks team. I've fixed autoscaler/vertical-pod-autoscaler/deploy/vpa-rbac.yaml.

I will work on the Helm PR separately from this one as well, it is formally setting the flag name in the Helm Chart so is actually a bit of a separate problem from this PR.

@adrianmoisey
Copy link
Member

/lgtm

I will work on the Helm PR separately from this one as well, it is formally setting the flag name in the Helm Chart so is actually a bit of a separate problem from this PR.

Which Helm PR are you referring to?

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 2, 2024
@voelzmo
Copy link
Contributor

voelzmo commented Dec 3, 2024

I guess it is this one: cowboysysop/charts#781

The main point is: we can just merge this change, adjusting the default value for the lease and there is no dependency for the helm chart PR, as it always sets the lease name explicitly.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: raywainman, voelzmo

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2024
@k8s-ci-robot k8s-ci-robot merged commit d87692f into kubernetes:master Dec 3, 2024
7 checks passed
@adrianmoisey
Copy link
Member

adrianmoisey commented Dec 3, 2024

as it always sets the lease name explicitly.

The Helm chart doesn't set it explicitly, they're all commented out.

However, we should try get that PR merged before we cut a release of the VPA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/vertical-pod-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants