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

[mce-2.5] Delete MachineAutoscalers that would get MaxReplicas==0 #2233

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #2229

/assign 2uasimojo

MachineAutoscalers are not allowed to have MaxReplicas==0.

PR openshift#2215 / bce2d47 partially fixed the scenario where a MachinePool's
autoscaling maxReplicas is less than the number of AZs by causing such
MAs not to be *created*. However, when reducing the MachinePool's
maxReplicas to below the number of AZs, we were still trying to update
*existing* MAs to have MaxReplicas==0. This commit adjusts the logic to
delete them instead.

HIVE-2415
Copy link
Member

@2uasimojo 2uasimojo left a comment

Choose a reason for hiding this comment

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

/lgtm

/cherry-pick mce-2.4

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 12, 2024
Copy link
Contributor

openshift-ci bot commented Mar 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 2uasimojo, openshift-cherrypick-robot

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 12, 2024
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 5499b72 and 2 for PR HEAD 47de324 in total

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.87%. Comparing base (5499b72) to head (47de324).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           mce-2.5    #2233      +/-   ##
===========================================
+ Coverage    57.85%   57.87%   +0.01%     
===========================================
  Files          187      187              
  Lines        26073    26074       +1     
===========================================
+ Hits         15085    15090       +5     
+ Misses        9723     9719       -4     
  Partials      1265     1265              
Files Coverage Δ
...g/controller/machinepool/machinepool_controller.go 53.46% <100.00%> (+0.56%) ⬆️

@2uasimojo
Copy link
Member

/override ci/prow/security

Will backport #2231

Copy link
Contributor

openshift-ci bot commented Mar 12, 2024

@2uasimojo: Overrode contexts on behalf of 2uasimojo: ci/prow/security

In response to this:

/override ci/prow/security

Will backport #2231

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@2uasimojo
Copy link
Member

/cherry-pick mce-2.4

@openshift-cherrypick-robot
Copy link
Author

@2uasimojo: once the present PR merges, I will cherry-pick it on top of mce-2.4 in a new PR and assign it to you.

In response to this:

/cherry-pick mce-2.4

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Contributor

openshift-ci bot commented Mar 12, 2024

@openshift-cherrypick-robot: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/security 47de324 link true /test security

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 3742b47 into openshift:mce-2.5 Mar 12, 2024
8 checks passed
@openshift-cherrypick-robot
Copy link
Author

@2uasimojo: new pull request created: #2236

In response to this:

/cherry-pick mce-2.4

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants