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

fix: Check if HPA has the same scaleTargetRef and behavior #3294

Merged
merged 4 commits into from
Dec 21, 2023

Conversation

terrytangyuan
Copy link
Member

There maybe existing HPAs but incorrectly configured to target non-deployment resources. This PR adds additional check on scaleTargetRef.

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
…conciler.go

Co-authored-by: Jooho Lee <ljhiyh@gmail.com>
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@terrytangyuan terrytangyuan changed the title fix: Check if HPA has the same scaleTargetRef fix: Check if HPA has the same scaleTargetRef and behavior Dec 13, 2023
@terrytangyuan
Copy link
Member Author

@Jooho Great suggestion. Added check for behavior as well!

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@terrytangyuan
Copy link
Member Author

terrytangyuan commented Dec 17, 2023

Then this is simply the entire autoscaler spec.

@yuzisun Thanks for the review. Just updated the PR to check spec directly.

@yuzisun
Copy link
Member

yuzisun commented Dec 21, 2023

/lgtm
/approve

Copy link

oss-prow-bot bot commented Dec 21, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: terrytangyuan, yuzisun

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

@oss-prow-bot oss-prow-bot bot merged commit d32e1e2 into kserve:master Dec 21, 2023
58 checks passed
@terrytangyuan terrytangyuan deleted the check-scale-target-ref branch December 21, 2023 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants