Skip to content

🌱 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

Merged
merged 1 commit into from
May 18, 2021

Conversation

chymy
Copy link
Contributor

@chymy chymy commented May 13, 2021

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 #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 13, 2021
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 13, 2021
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 13, 2021
@chymy chymy force-pushed the fix-comment-0513 branch from 36af1bd to 3fa8ab7 Compare May 13, 2021 08:00
@sbueringer
Copy link
Member

/lgtm
/ok-to-test

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).

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 13, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 13, 2021
@@ -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
Copy link
Member

@enxebre enxebre May 13, 2021

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.)?

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will fix.

@fabriziopandini
Copy link
Member

@chymy you are doing a great cleanup work!
What about grouping those fixing in bigger bulk, so we can make more discrete improvements and get the most out of reviewers time?

@sbueringer
Copy link
Member

sbueringer commented May 13, 2021

@chymy you are doing a great cleanup work!
What about grouping those fixing in bigger bulk, so we can make more discrete improvements and get the most out of reviewers time?

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.

@chymy
Copy link
Contributor Author

chymy commented May 14, 2021

Comment issues seems to be too many. Executing the make link command does not check for comment issues.
I use golint is work.

@chymy chymy force-pushed the fix-comment-0513 branch from 3fa8ab7 to b5ffb8b Compare May 14, 2021 09:39
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 14, 2021
@sbueringer
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 14, 2021
@fabriziopandini
Copy link
Member

Comment issues seems to be too many. Executing the make link command does not check for comment issues.
I use golint is work.

@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

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 18, 2021
@k8s-ci-robot k8s-ci-robot merged commit 18b2741 into kubernetes-sigs:master May 18, 2021
@k8s-ci-robot k8s-ci-robot added this to the v0.4 milestone May 18, 2021
@chymy
Copy link
Contributor Author

chymy commented May 19, 2021

Comment issues seems to be too many. Executing the make link command does not check for comment issues.
I use golint is work.

@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).

OK, thanks.

anusha94 pushed a commit to anusha94/cluster-api that referenced this pull request May 28, 2021
anusha94 pushed a commit to anusha94/cluster-api that referenced this pull request May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants