-
Notifications
You must be signed in to change notification settings - Fork 120
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
Parameterize CAPI maxSurge field #620
Parameterize CAPI maxSurge field #620
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, will run the tests first
/test-integration |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fmuyassarov, jan-est 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 was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Small nit: you have to update config_example.sh and vars.md as well, but it can be tackled in a separate PR.
@jan-est can we fix it now ? |
I'd rather tackle it in this PR, since we're doing the modification, let's do everything at once. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to mention one more thing, btw: if we want to set MAX_SURGE_VALUE
to 0 (default is 1), NUM_OF_MASTER_REPLICAS
MUST be <= 3 (default is 1) according to xref. Should we note and/or take into account that case as well?
Is that something we can take account in the individual test cases? |
0054782
to
3298388
Compare
3298388
to
401935b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, couple of small nits, by the way CONTROL_PLANE_MACHINE_COUNT
is now replaced with NUM_OF_MASTER_REPLICAS
. So do we need this CONTROL_PLANE_MACHINE_COUNT
anywhere else?
config_example.sh
Outdated
|
||
# This variable defines if controlplane should scale-in or scale-out during upgrade | ||
# The field values can be 0 or 1. Default is 1. When set to 1 controlplane scale-out | ||
# When set to 0 controlplane scale-in. In case of scale-in NUM_OF_MASTER_REPLICAS must be <=3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this statement correct? In case of scale-in NUM_OF_MASTER_REPLICAS must be <=3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch NUM_OF_MASTER_REPLICAS
must be 3 or greater. Fixed
@@ -9,6 +9,8 @@ assured that they are persisted. | |||
|
|||
| Name | Option | Allowed values | Default | | |||
| :------ | :------- | :--------------- | :-------- | | |||
| NUM_OF_MASTER_REPLICAS | Set the controlplane replica count. ||1| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be ||1| ? There are double |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be ||1| ? There are double |
Third column is empty, so I assume this is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha ok true
This PR parameterizes the required metal3_dev_env fields and adds a new environment variable MAX_SURGE_VALUE.
401935b
to
0d6792c
Compare
|
/test-centos-integration |
The Cluster API control plane now allows for scaling in 4293. Documentation can be found rolling-update-strategy
This PR parameterizes the required metal3_dev_env fields and adds a new environment variable MAX_SURGE_VALUE.