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

Clean up unused code in kubelet #109407

Merged

Conversation

yxxhero
Copy link
Member

@yxxhero yxxhero commented Apr 10, 2022

Signed-off-by: yxxhero aiopsclub@163.com

What type of PR is this?

Clean up unused code in kubelet
/kind cleanup

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes # None

Special notes for your reviewer: None

Does this PR introduce a user-facing change?

None

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

None

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Apr 10, 2022
@k8s-ci-robot k8s-ci-robot added area/kubelet sig/node Categorizes an issue or PR as relevant to SIG Node. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Apr 10, 2022
@yxxhero
Copy link
Member Author

yxxhero commented Apr 10, 2022

/kind cleanup

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Apr 10, 2022
cmd/kubelet/app/server.go Outdated Show resolved Hide resolved
@yxxhero
Copy link
Member Author

yxxhero commented Apr 10, 2022

/retest-required

@yxxhero
Copy link
Member Author

yxxhero commented Apr 10, 2022

/retest

@aojea
Copy link
Member

aojea commented Apr 10, 2022

/assign @pohly

he is the best person, or at least one of them to review this,

@pohly
Copy link
Contributor

pohly commented Apr 11, 2022

/lgtm

$ go run ./cmd/kubelet --logging-format=xyz 
Flag --logging-format has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
E0411 10:06:00.034229   40869 run.go:74] "command failed" err="failed to validate kubelet configuration, error: logging.format: Invalid value: \"xyz\": Unsupported log format, path: &TypeMeta{Kind:,APIVersion:,}"
exit status 1

It would be slightly nicer if that error wasn't reported with klog.Error because logging hasn't been fully initialized yet. But that's a problem of cli.Run having to guess how far the application got before encountering the error, i.e. unrelated to this change.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 11, 2022
Copy link
Member

@cndoit18 cndoit18 left a comment

Choose a reason for hiding this comment

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

LGTM

@yxxhero
Copy link
Member Author

yxxhero commented Apr 12, 2022

@matthyx ping

@249043822
Copy link
Member

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 12, 2022
@249043822 249043822 added this to Needs Approver in SIG Node PR Triage Apr 12, 2022
Copy link
Contributor

@matthyx matthyx left a comment

Choose a reason for hiding this comment

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

/lgtm

@yxxhero
Copy link
Member Author

yxxhero commented Apr 12, 2022

/assign @derekwaynecarr

@yxxhero yxxhero changed the title remove unused code in kubelet Clean up unused code in kubelet Apr 13, 2022
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 18, 2022
Signed-off-by: yxxhero <aiopsclub@163.com>
@yxxhero yxxhero force-pushed the remove_unused_code_in_kubelet branch from b89b405 to 7a5af81 Compare June 18, 2022 07:03
@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 18, 2022
@yxxhero yxxhero requested review from matthyx and cndoit18 June 18, 2022 07:04
Copy link
Contributor

@matthyx matthyx left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 20, 2022
@yxxhero
Copy link
Member Author

yxxhero commented Jun 20, 2022

@matthyx Thanks very much

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cndoit18, matthyx, mrunalp, yxxhero

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 Jun 28, 2022
@mrunalp mrunalp moved this from Needs Approver to Done in SIG Node PR Triage Jun 28, 2022
@k8s-ci-robot k8s-ci-robot merged commit c7eb5a4 into kubernetes:master Jun 28, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.25 milestone Jun 28, 2022
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/kubelet cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note-none Denotes a PR that doesn't merit a release note. sig/node Categorizes an issue or PR as relevant to SIG Node. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Development

Successfully merging this pull request may close these issues.

None yet

9 participants