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

[v0.11.1] Allow disabling creation of the HPA in raw deployment mode (#3086) #338

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

israel-hdez
Copy link

Cherry-pick of kserve#3086

* Refactor autoscaler functionality into an interface.

Add no-op autoscaler so users disable creation of autoscaler resources.
Add AutoscalerClassNone feature with test cases

Signed-off-by: jooho <[email protected]>
Signed-off-by: Dan Sun <[email protected]>
Signed-off-by: Andrews Arokiam <[email protected]>

* Rollback getHPAMetrics to set ScaleTarget,ScaleMetric

Signed-off-by: jooho <[email protected]>
Signed-off-by: Dan Sun <[email protected]>
Signed-off-by: Andrews Arokiam <[email protected]>

* Fix merge conflict

Signed-off-by: Dan Sun <[email protected]>
Signed-off-by: Andrews Arokiam <[email protected]>

* Fix autoscaler api group

Signed-off-by: Dan Sun <[email protected]>
Signed-off-by: Andrews Arokiam <[email protected]>

* Fix autoscaler merge

Signed-off-by: Dan Sun <[email protected]>
Signed-off-by: Andrews Arokiam <[email protected]>

* Fix autoscaling tests

Signed-off-by: Dan Sun <[email protected]>
Signed-off-by: Andrews Arokiam <[email protected]>

* Updated hpa disable test.

Signed-off-by: Andrews Arokiam <[email protected]>

* Replaced "AutoscalerClassNone" with "AutoscalerClassExternal"

Signed-off-by: Andrews Arokiam <[email protected]>

* Fixed autoscalerClass 'external' go test.

Signed-off-by: Andrews Arokiam <[email protected]>

---------

Signed-off-by: jooho <[email protected]>
Signed-off-by: Dan Sun <[email protected]>
Signed-off-by: Andrews Arokiam <[email protected]>
Co-authored-by: Curtis Maddalozzo <[email protected]>
Co-authored-by: jooho <[email protected]>
Co-authored-by: Dan Sun <[email protected]>
@openshift-ci openshift-ci bot requested review from Jooho and spolti April 24, 2024 16:19
Copy link

openshift-ci bot commented Apr 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: israel-hdez

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

@israel-hdez israel-hdez changed the title Allow disabling creation of the HPA in raw deployment mode (#3086) [v0.11.1] Allow disabling creation of the HPA in raw deployment mode (#3086) Apr 24, 2024
@Jooho Jooho merged commit d40d234 into opendatahub-io:release-v0.11.1 Apr 24, 2024
21 of 22 checks passed
@israel-hdez israel-hdez deleted the cp-disable-hpa branch April 24, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants