-
Notifications
You must be signed in to change notification settings - Fork 460
Update godoc of CapacityReservationGroupID of AzureMachineSpec #4830
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
Update godoc of CapacityReservationGroupID of AzureMachineSpec #4830
Conversation
|
Hi @arkadeepsen. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
|
Thanks @arkadeepsen! The |
f882282 to
de135dc
Compare
|
/ok-to-test |
@mboersma my bad. Thanks for pointing that out. I have run |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4830 +/- ##
==========================================
+ Coverage 62.01% 62.02% +0.01%
==========================================
Files 201 201
Lines 16858 16858
==========================================
+ Hits 10455 10457 +2
+ Misses 5620 5618 -2
Partials 783 783 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the validation is already being done in ValidateCapacityReservationGroupID. I think the clarity helps but other fields that have similar requirements do not include this information in the godoc. @jackfrancis @mboersma what's your take on this? Was just wondering for the sake of consistency, otherwise lgtm.
Providing a context as to why the change in the godoc is introduced. In OpenShift specific APIs, we try to provide information in the godoc which will be beneficial for the user to create/update a CR. Though, as pointed out, the information is provided when the validation fails, it's good to have the information available beforehand. |
|
@willie-yao it's a good point–we could argue it should be documented similarly for many other fields. I just assumed this change in particular would be (would have been) helpful for the requestor and perhaps others, and wasn't bothered by the inconsistency. But we should hear from other maintainers. |
willie-yao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In OpenShift specific APIs, we try to provide information in the godoc which will be beneficial for the user to create/update a CR
Sounds good, it definitely doesn't hurt. I'll wait for another opinion from the team before lgtm but I'm good with this change!
JoelSpeed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Plus 1 for additional context to help users coming up with the correct input
|
LGTM label has been added. Git tree hash: f1440a9f88f5752096ad2940d2f4763c8c17d6ac
|
|
/assign @willie-yao for approval |
|
@mboersma: GitHub didn't allow me to assign the following users: for, approval. Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
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. |
willie-yao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: willie-yao The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR updates the godoc of
CapacityReservationGroupIDofAzureMachineSpec. The updated godoc contains the explanation of what the requirements are for theCapacityReservationGroupID.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #4829
Special notes for your reviewer:
TODOs:
Release note: