-
Notifications
You must be signed in to change notification settings - Fork 108
Remove multi_az documentation for aro_hcp #1053
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
base: main
Are you sure you want to change the base?
Remove multi_az documentation for aro_hcp #1053
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mahesh-palkar 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 |
Hi @mahesh-palkar. Thanks for your PR. I'm waiting for a openshift-online member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
aece801
to
799eee0
Compare
@vkareh @etabak do you see the approach mentioned here ok? Initially we wanted to still leverage the multi_az attribute in aro-hcp and make it At the same time, we cannot "unset" the value because at api layer because internally in the model it is a boolean, which does not allow to differentiate between false and unset. An option was changing the internal model from a boolean to a boolean pointer but that had broad implications on the existing codebase. Because of that, the decision has been to just not set any value for that attribute in aro-hcp (this MR formalizes that). This is, it is unused (null) always. Another reason is because although a region in Azure might not have AZs/multiple AZs support, we don't know if that could not necessarily be the case over time, so it could be technically inaccurate information at some point, which added another argument to not set it. |
@miguelsorianod: by "approach", are you referring to the attribute documentation? That's the only change I see in this PR, and the API will be hidden by the RP anyway. Why not make it an internal validation in CS to ensure the RP cannot accidentally set/use the value? |
For ARO-HCP, the multi_az flag is read-only and cannot be configured by the user. Internally, the field is unused, and as a non-pointer boolean, it defaults to false.
The reason is that once the value is mapped into the internal struct as a non-pointer, we can no longer distinguish whether it was explicitly set by the user or intended to be derived later via Azure APIs. Using a pointer would preserve this distinction but it will cause a broader impact on the codebase. Hence, using a pointer was avoided.
Ticket: https://issues.redhat.com/browse/ARO-17289
MR : https://gitlab.cee.redhat.com/service/uhc-clusters-service/-/merge_requests/9973