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

ARO-3054 - Set OpenShift Version during Cluster Creation #2926

Merged
merged 8 commits into from
Jun 6, 2023

Conversation

tphelps93
Copy link
Contributor

@tphelps93 tphelps93 commented Jun 1, 2023

Added functionality for clusters creation to use a specified version of OpenShift.

Testing
A portion of this code change relies on input from the user in the RP Pipeline in ARO-Pipelines and that input to be passed as an environment variable (OS_CLUSTER_VERSION). That portion has been tested locally and it does successfully take the input and pass it to the script.

The changes made in the ARO-RP simply set the OS_CLUSTER_VERSION to a variable (osClusterVersion) that is passed in as an argument to the Create function call, the Create function calls the createCluster function which takes osClusterVersion as an argument, and that is utilized as the Version key in the ClusterProfile struct.

We want the functionality to remain the same if no version is passed in by the user.
This is accomplished by the omitempty in the ClusterProfile struct. If the value of the osClusterVersion is null, an empty string, etc then it should not include that key/value. I tested this locally and it does indeed, leave out the version when an empty string is passed.

Next steps would be to merge this PR and test this end-to-end.

JIRA Task

@tphelps93 tphelps93 changed the title ARO-3054 - E2E Parameter ARO-3054 - Set OpenShift Version during Cluster Creation Jun 1, 2023
@tphelps93
Copy link
Contributor Author

@microsoft-github-policy-service agree company="CloudFit Software"

@github-actions github-actions bot added the needs-rebase branch needs a rebase label Jun 2, 2023
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Please rebase pull request.

Copy link
Collaborator

@UlrichSchlueter UlrichSchlueter left a comment

Choose a reason for hiding this comment

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

LGTM

@UlrichSchlueter UlrichSchlueter merged commit 0c7b9bf into Azure:master Jun 6, 2023
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.

3 participants