Skip to content
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

Cleaned up lint errors in pkg/kubeapiserver/server. #68324

Merged
merged 1 commit into from
Sep 28, 2018

Conversation

cheftako
Copy link
Member

@cheftako cheftako commented Sep 6, 2018

What this PR does / why we need it:
Fixes lint errors in pkg/kubeapiserver/server.
Enables lint testing of pkg/kubeapiserver/server.

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 part of issues/68026

Special notes for your reviewer:

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Sep 6, 2018
@cheftako
Copy link
Member Author

cheftako commented Sep 6, 2018

/sig api-machinery

@k8s-ci-robot k8s-ci-robot added sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Sep 6, 2018
@cheftako
Copy link
Member Author

cheftako commented Sep 6, 2018

cc @fedebongio

@yue9944882
Copy link
Member

hi @cheftako , could u do all the lint fix for pkg/kubeapiserver/* too? we get ~800 pkgs to fix in total. it'll be flooding if we fix it one by one.

pkg/kubeapiserver
pkg/kubeapiserver/admission
pkg/kubeapiserver/authenticator
pkg/kubeapiserver/authorizer
pkg/kubeapiserver/authorizer/modes
pkg/kubeapiserver/options

@cheftako
Copy link
Member Author

cheftako commented Sep 7, 2018

Hi @yue9944882 I get the idea. Personally I think we should encourage small PRs like this. They are easy to inspect and know they are correct which makes them easier to review and approve than larger PRs which hit many files and cover a variety of different fixes. Should we need to roll it back we are rolling back just the problematic code and not other things as well. Lastly I think we need to encourage participation /engagement in the project. Indicating to people we won't accept their work unless they do more may not be the best way to go about that.

@yue9944882
Copy link
Member

They are easy to inspect and know they are correct which makes them easier to review and approve than larger PRs which hit many files and cover a variety of different fixes.

take this pull as example, the requested owner area is pkg/kubeapiserver. tho we involve more sub-pkgs under it, it's doesn't request any more load of owners. but yeah, putting several pkgs into a pull makes it a bit harder to review but maybe we can divide the change into several logical commits to sort things clear. especially for such one-liner pulls.

it's just a polite suggestion. my point is that if we deal with the pkgs one-by-one, it'll possibly take us year-ish time to close the issue.

@cheftako
Copy link
Member Author

/test pull-kubernetes-integration

@lavalamp
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 27, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheftako, lavalamp

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 Sep 27, 2018
@k8s-ci-robot k8s-ci-robot merged commit 79fa559 into kubernetes:master Sep 28, 2018
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. area/apiserver 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. release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants