USHIFT-1031: fix golangci-lint reported issues#1605
USHIFT-1031: fix golangci-lint reported issues#1605openshift-merge-robot merged 9 commits intoopenshift:mainfrom
Conversation
|
@copejon: This pull request references USHIFT-1031 which is a valid jira issue. DetailsIn 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/test-infra repository. |
1 similar comment
|
@copejon: This pull request references USHIFT-1031 which is a valid jira issue. DetailsIn 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/test-infra repository. |
|
/cherry-pick release-4.13 |
|
@copejon: once the present PR merges, I will cherry-pick it on top of release-4.13 in a new PR and assign it to you. DetailsIn 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/test-infra repository. |
dhellmann
left a comment
There was a problem hiding this comment.
Most of these changes look like things we want.
I don't see a change to enable the linter in the Makefile, and I think we'll want that as part of this PR so we don't end up regressing.
Since the PR touches so many files, I'm hoping we can land the configuration refactoring in #1442 before this. Or at least not change the config package in this PR so I don't have to rebase again.
Thanks, that's a good point. Will add.
I'm fine keeping this one on hold until then. |
There was a problem hiding this comment.
Looks like 1st usage of go generics in microshift? :)
848df23 to
8019687
Compare
eggfoobar
left a comment
There was a problem hiding this comment.
Just a small suggestion on order
5fb9a60 to
eb78cce
Compare
|
/retest |
1 similar comment
|
/retest |
|
Failure is due to the golangci-lint trying and failing to create a .cache dir in the user's home dir, which doesn't exist. I'm working on a fix in CI to override the default cache location. |
|
/test verify |
|
/retest |
|
@copejon , looks like the Verify test requires some fixes in the code |
pkg/config/config.go
Outdated
There was a problem hiding this comment.
Flipping this condition around will cause problems when more validations get added later.
There was a problem hiding this comment.
Fair point. I've reverted the change and added a linter skip tag.
There was a problem hiding this comment.
I don't see a linter skip tag here. Was a change lost in a rebase?
pkg/mdns/controller.go
Outdated
|
/retest |
|
/test verify |
|
The linter is satisfied, however the vulnerability check found 4 items and is failing the verify test. |
pkg/config/config.go
Outdated
There was a problem hiding this comment.
I don't see a linter skip tag here. Was a change lost in a rebase?
pkg/cmd/run.go
Outdated
There was a problem hiding this comment.
Should this be the context that everything else is using to know when to exit?
There was a problem hiding this comment.
Moved the runCtx declaration above the AddServer chunk so it can be passed down to services
Signed-off-by: Jon Cope <jcope@redhat.com>
use Set generics over deprecated Set types
…hey are always nil
Signed-off-by: Jon Cope <jcope@redhat.com> the presence of a vendor dir causes install to place the bin outside of PATH, forcing it to behave as a module fixes this Signed-off-by: Jon Cope <jcope@redhat.com> post-rebase fixes. These include err checking, nested ifs, empty newlines, and a couple ctx passing errors
…d up linter fixes b/c of it, instead follow up in another PR Signed-off-by: Jon Cope <jcope@redhat.com>
…to 3m Signed-off-by: Jon Cope <jcope@redhat.com>
Signed-off-by: Jon Cope <jcope@redhat.com>
… make vendor-etcd
|
This looks good. I set the merge method to squash, but you can remove that if you want. Remove the hold when you're ready. /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: copejon, dhellmann The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
|
@copejon: #1605 failed to apply on top of branch "release-4.13": DetailsIn 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/test-infra repository. |
Which issue(s) this PR addresses:
USHIFT-1031
This PR applies fixes to errors caught by golangci-lint, or applies ignore directives when applicable.