Skip to content

Conversation

@maxcao13
Copy link
Member

@maxcao13 maxcao13 commented Mar 22, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:

Only allow VPA objects with InPlaceOrRecreate update mode to be created if InPlaceOrRecreate feature gate is enabled. If a VPA object already exists with this mode on, and the feature gate is disabled, this prevents further objects to be created with InPlaceOrRecreate , but this does not prevent the existing InPlaceOrRecreate VPA objects with from being modified.

Which issue(s) this PR fixes:

Part of AEP-4016 (InPlaceVerticalScaling/InPlaceOrRecreate)
This PR is part of the larger feature PR in #7673
Depends on: #7934

Note that this PR is merging into the in-place-updates feature branch, which will be merged when this feature is all reviewed and ready.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

[AEP-4016]: https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler/enhancements/4016-in-place-updates-support

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/vertical-pod-autoscaler labels Mar 22, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 22, 2025
@maxcao13
Copy link
Member Author

maxcao13 commented Mar 22, 2025

Depends on #7934 to merge for unit tests to pass.

@maxcao13
Copy link
Member Author

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 22, 2025
@adrianmoisey
Copy link
Member

The one test failure seems to be legitimate

@maxcao13 maxcao13 force-pushed the in-place-updates-admission branch 3 times, most recently from 6bff3ef to 8920984 Compare March 24, 2025 15:55
@maxcao13
Copy link
Member Author

/cc @raywainman

@k8s-ci-robot k8s-ci-robot requested a review from raywainman March 25, 2025 17:24
@raywainman
Copy link
Member

2 quick test nits and then this is good to go, thanks Max!

Only allow VPA objects with InPlaceOrRecreate update mode to be created if InPlaceOrRecreate feature gate is enabled. If a VPA object already exists with this mode on, and the feature gate is disabled, this prevents further objects to be created with InPlaceOrRecreate, but this does not prevent the existing InPlaceOrRecreate VPA objects with from being modified.

Signed-off-by: Max Cao <[email protected]>
@maxcao13 maxcao13 force-pushed the in-place-updates-admission branch from 8920984 to a0cf017 Compare March 25, 2025 19:01
@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 Mar 25, 2025
@raywainman
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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 Mar 25, 2025
@maxcao13
Copy link
Member Author

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 25, 2025
@k8s-ci-robot k8s-ci-robot merged commit 656a69f into kubernetes:in-place-updates Mar 25, 2025
7 checks passed
@maxcao13 maxcao13 deleted the in-place-updates-admission branch March 25, 2025 21:15
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/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants