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

Fixing ARO API to enable Terraform Provider for ARO #2983

Closed
wants to merge 0 commits into from

Conversation

gouthamMN
Copy link
Contributor

@gouthamMN gouthamMN commented Jun 23, 2023

Which issue this PR addresses:

Fixes https://issues.redhat.com/browse/ARO-2124

What this PR does / why we need it:

OpenShiftCluster GET API returns enriched worker profile data under a new field "workerProfilesStatus". This change is introduced only to new API. More details can be found on Design Doc

Any API call made to endpoints /openShiftClusters or /openShiftCluster with GET method using newer API versions (>= v2023-07-01-preview) will return the enriched worker profile data under a new field "workerProfilesStatus" in the response and "workerProfiles" filed will contain the last input that was passed in PUT/PATCH request body for cluster creation or update.

The response and behavior of any older APIs versions (< v2023-07-01-preview) remain unchanged i.e, only "workerProfiles" filed exists in the response.

Test plan for issue:

Existing unit tests and E2E test copied over from previous API.

Is there any documentation that needs to be updated for this PR?

N/A

@weinong
Copy link
Contributor

weinong commented Jun 26, 2023

i think it'd be okay to summarize the outcome from design doc in the PR body. In particular, that table in page 6.

Copy link
Contributor

@weinong weinong left a comment

Choose a reason for hiding this comment

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

I finished my review.

weinong
weinong previously approved these changes Jun 27, 2023
Copy link
Contributor

@weinong weinong left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/api/admin/openshiftcluster_convert.go Outdated Show resolved Hide resolved
pkg/api/v20230701preview/openshiftcluster_convert.go Outdated Show resolved Hide resolved
@gouthamMN gouthamMN added next-release To be included in the next RP release rollout go Pull requests that update Go code labels Jul 5, 2023
s-amann
s-amann previously approved these changes Jul 5, 2023
@SudoBrendan
Copy link
Collaborator

Hey, I'm adding a hold on this since it looks like we might be changing up what API version this lands in. Please reach out if you have any questions.

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

Please rebase pull request.

@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Jul 18, 2023
@gouthamMN gouthamMN closed this Jul 19, 2023
@gouthamMN gouthamMN force-pushed the master branch 2 times, most recently from 6bed9c1 to 220c6ff Compare July 19, 2023 21:47
@gouthamMN
Copy link
Contributor Author

gouthamMN commented Jul 26, 2023

These changes are moved to new PR #3053

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code hold Hold next-release To be included in the next RP release rollout ready-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants