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

add OPTIONAL_PARAMS for ROSA #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

hchenxa
Copy link
Contributor

@hchenxa hchenxa commented May 9, 2022

Signed-off-by: hchenxa [email protected]

@openshift-ci
Copy link

openshift-ci bot commented May 9, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hchenxa
To complete the pull request process, please assign schmidtd after the PR has been reviewed.
You can assign the PR to them by writing /assign @schmidtd in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hchenxa
Copy link
Contributor Author

hchenxa commented May 9, 2022

/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} \
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants