-
Notifications
You must be signed in to change notification settings - Fork 11
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
add OPTIONAL_PARAMS for ROSA #35
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: hchenxa <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hchenxa The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @schmidtd |
@@ -151,7 +153,7 @@ ${ROSA} create cluster \ | |||
--compute-machine-type=${AWS_WORKER_TYPE} \ | |||
--compute-nodes=${AWS_WORKER_COUNT} \ | |||
--channel-group=${CHANNEL_GROUP} \ | |||
--multi-az \ | |||
--multi-az ${OPTIONAL_PARAMS} \ |
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.
Rather than combining generic OPTIONAL_PARAMS
with options specific to --multi-az
, I'd suggest name-scoping a new optional parameter like MULTI-AZ-PARAMS
and using that in the --multi-az
line.
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.
how about add the OPTIONAL_PARAMS
at the end of command like below:
${ROSA} create cluster \
--cluster-name=${RESOURCE_NAME} \
--region=${AWS_REGION} \
--version=${OCP_VERSION} \
--compute-machine-type=${AWS_WORKER_TYPE} \
--compute-nodes=${AWS_WORKER_COUNT} \
--channel-group=${CHANNEL_GROUP} \
--multi-az \
--watch \
--yes ${OPTIONAL_PARAMS}
since the parameter was not for mult-az, so I think it may make confused if we use the name-scoping parameters.
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.
It would be nice if it could be on its own line to make it clear that it doesn't belong with any of the current parameters (the reason I mistook it for belonging to multi-az), but I can see how that might cause different problems if it were blank vs. non-blank. Adding it to the end is at least better than having it up a few lines the way it is currently.
Signed-off-by: hchenxa [email protected]