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
fix kubelet flushlogs not working together with exit #104774
fix kubelet flushlogs not working together with exit #104774
Conversation
/ok-to-test |
/retest |
/triage accepted @kerthcet Might be worth adding a release note entry as this might be useful to folks debugging deployments. |
/lgtm |
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.
Thanks for helping the issue!
Also, in this PR, please check the below point.
On this PR, you have to consider, for example, this point
https://github.com/kubernetes/kubernetes/blob/master/cmd/kubelet/app/server.go#L160
d803761
to
e7ebe9e
Compare
kindly ping @endocrimes , @sanposhiho |
Sorry for the late reply. LGTM :) |
kindly ping @pacoxu |
/assign @mrunalp for approval |
Signed-off-by: kerthcet <kerthcet@gmail.com>
beef8c3
to
9600e8d
Compare
No changes applied, just rebase the master branch. |
/remove-kind feature |
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.
Please update your first comment, this does not fix entirely fix the linked issue and GitHub will auto-close it if this merges.
@@ -152,31 +153,25 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API | |||
// DisableFlagParsing=true provides the full set of flags passed to the kubelet in the | |||
// `args` arg to Run, without Cobra's interference. | |||
DisableFlagParsing: true, | |||
Run: func(cmd *cobra.Command, args []string) { | |||
RunE: func(cmd *cobra.Command, args []string) error { |
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.
cmd.Usage() | ||
os.Exit(1) |
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.
After this change we no longer print usage info. I suspect this is okay because the kubelet usage info is massively long and makes it hard to see the error, but we should note this in the release note.
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.
We will still print usage info here
Signed-off-by: kerthcet <kerthcet@gmail.com>
/retest |
kindly ping @mrunalp |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kerthcet, pohly, sjenning 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 |
Signed-off-by: kerthcet kerthcet@gmail.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
kubelet flushlogs not working together with exit
Which issue(s) this PR fixes:
Part of #102231
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: