-
Notifications
You must be signed in to change notification settings - Fork 1.4k
🌱 Fix comment issue in controlplane/kubeadm/internal/etcd/etcd.go #4607
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
Conversation
Hi @chymy. 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/test-infra repository. |
/lgtm Looks like we're missing some very basic linters. (although I'm not sure there is one which only enforces godoc conventions we care about). |
@@ -68,7 +68,7 @@ type MemberAlarm struct { | |||
type AlarmType int32 | |||
|
|||
const ( | |||
// AlarmOK denotes that the cluster member is OK. | |||
// AlarmOk denotes that the cluster member is OK. | |||
AlarmOk AlarmType = iota |
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.
shouldn't we actually rename the variable to AlarmOK
according to convention and [spelling](https://en.wikipedia.org/wiki/OK#:~:text=OK%20(spelling%20variations%20include%20okay,or%20a%20sign%20of%20indifference.)?
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 think you're right
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 will fix.
@chymy you are doing a great cleanup work! |
Further improvement of this would be to find out if there are linters we could use via golangci-lint for some of these findings. Then we could introduce the linter and fix issues of the same "kind" all at once (or split them up if they are just too many and introduce the linter in the last PR). This would work perfectly by first looking for potential linters, then getting consenus via an issue that we actually want to enforce those kind of things and then cleaning it up via a PR. Via the linter we can make sure we never have to manually review or fix those findings again, which would be a huge improvement imho. |
Comment issues seems to be too many. Executing the |
Signed-off-by: chymy <[email protected]> Signed-off-by: chymy <[email protected]>
/lgtm |
@chymy if you are interested in this area please chime in the discussion around #4622, so we can agree on a set of linters checks we rely on, while everything else is discretional (including warning from other linters). /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
OK, thanks. |
…from chymy/fix-comment-0513
…rom chymy/fix-comment-0513
What this PR does / why we need it:
Fix comment issue in controlplane/kubeadm/internal/etcd/etcd.go
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 #