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

OCM-8337 | fix: [HCP] always set replicas when updating machinepools #2124

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

andreadecorte
Copy link
Contributor

@andreadecorte andreadecorte commented May 31, 2024

We always pass the replicas when editing a machinepool, even if the value has not changed, as this will then be a no-op. Right now we are not setting replicas if they are the same as the current value and this result in an error returned to the user.

Related: OCM-8337

@andreadecorte
Copy link
Contributor Author

@chenz4027 PTAL, as linked with #1940

We always pass the replicas when editing a machinepool, even if
the value has not changed, as this will then be a no-op. Right now
we are not setting replicas if they are the same as the current value
and this result in an error returned to the user.

Related: OCM-8337
Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 26.67%. Comparing base (f8cd646) to head (929bfbb).
Report is 23 commits behind head on master.

Files Patch % Lines
cmd/edit/machinepool/nodepool.go 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2124      +/-   ##
==========================================
+ Coverage   26.65%   26.67%   +0.02%     
==========================================
  Files         152      152              
  Lines       21402    21403       +1     
==========================================
+ Hits         5705     5710       +5     
+ Misses      15273    15269       -4     
  Partials      424      424              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chenz4027
Copy link
Contributor

/lgtm

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

@robpblake robpblake left a comment

Choose a reason for hiding this comment

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

/lgtm

@robpblake
Copy link
Contributor

/approve

Copy link
Contributor

openshift-ci bot commented Jun 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreadecorte, chenz4027, robpblake

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 Jun 4, 2024
Copy link
Contributor

openshift-ci bot commented Jun 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreadecorte, chenz4027, robpblake

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

Copy link
Contributor

openshift-ci bot commented Jun 4, 2024

@andreadecorte: all tests passed!

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-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit ca99657 into openshift:master Jun 4, 2024
11 checks passed
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