-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: Check if HPA has the same scaleTargetRef and behavior #3294
Conversation
81e8c07
to
e612fba
Compare
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
e612fba
to
fbfe996
Compare
pkg/controller/v1beta1/inferenceservice/reconcilers/hpa/hpa_reconciler.go
Outdated
Show resolved
Hide resolved
…conciler.go Co-authored-by: Jooho Lee <ljhiyh@gmail.com> Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@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>
@yuzisun Thanks for the review. Just updated the PR to check spec directly. |
/lgtm |
[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 |
There maybe existing HPAs but incorrectly configured to target non-deployment resources. This PR adds additional check on scaleTargetRef.