-
Notifications
You must be signed in to change notification settings - Fork 96
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
OCM-1988 | Changes to API model of addons_mgmt to support rosa cli changes #997
Conversation
@venkateshsredhat what about making a change here? |
@venkateshsredhat why do we need this PR exactly? when I tried to auto-generate the changes in ocm-sdk-go w.r.t your PR, The Golang-related changes were such as shifting from
But considering the fact, that the response's JSON from addons-service only returns Also, |
The main idea for this was the ROSA cli while using clusters_mgmt had different return types and when i changed to using addons_mgmt there were some functions breaking because of different return type . So to better align these changes were made . |
Imo it would be better to make ROSA use addons_mgmt with the respective (different) types for two reasons:
Feel free to let me know your thoughts. |
Interesting take to this , any idea which are the existing client using addons_mgmt SDK atm ? If go down the path where we are not making changes to Models then at ROSA side it fails at a lot of places because the mismatched return type doesn't have a lot of the methods which were present for clusters_mgmt . Also imo opinion making this change is much better than making changes to ROSA though one crucial point from this is that we might wanna make the OCM cli change as well together so we can raise all the required API model changes together as currently it requires around 4 PRs to get this done . @ashishmax31 any thoughts around this ? |
Alright then, idm lgtm-ing this PR. So /lgtm from my side. Feel free to post on forum-cluster-management to get this PR merged. |
Thanks @yashvardhan-kukreja , Though i would like to know few things : |
addonservice client in the CS's codebase. My preference was just emphasizing more towards having less communication overhead and choosing the quicker path.
The first two PRs including this one would be in the ocm-api-model. The two PR change in ocm-sdk-go would lead the change in any client like ROSA cli wanting using this sdk. So, just doing them in an ordered fashion makes sense or you can create dummy PRs as if the pre-requisite PRs are merged. All upto you. |
Okay , Thanks . @yashvardhan-kukreja could you lgtm this if all good . |
As Addon Service Migration has been completed we need to update the ROSA CLI to use our API as result updating models so it reflects in ocm-sdk-go .
openshift-online/ocm-sdk-go@main...venkateshsredhat:ocm-sdk-go:OCM-1988 Generated SDK change for this .