-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
Add ctx logging involved in KS startup #115588
Add ctx logging involved in KS startup #115588
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
cmd/kube-scheduler/app/server.go
Outdated
@@ -111,6 +111,7 @@ for more information about scheduling and the kube-scheduler component.`, | |||
cliflag.SetUsageAndHelpFunc(cmd, *nfs, cols) | |||
|
|||
if err := cmd.MarkFlagFilename("config", "yaml", "yml", "json"); err != nil { | |||
// nolint:logcheck // TODO (?): return error instead of logging it here |
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.
Moving this discussion here: #111155 (comment)
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.
let's use klog.Background
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
cmd/kube-scheduler/app/server.go
Outdated
@@ -111,6 +111,7 @@ for more information about scheduling and the kube-scheduler component.`, | |||
cliflag.SetUsageAndHelpFunc(cmd, *nfs, cols) | |||
|
|||
if err := cmd.MarkFlagFilename("config", "yaml", "yml", "json"); err != nil { | |||
// nolint:logcheck // TODO (?): return error instead of logging it here |
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.
let's use klog.Background
/label tide/merge-method-squash |
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.
/approve
/hold for nit
/lgtm |
LGTM label has been added. Git tree hash: c90453db12d65ebfb3bcbe4dd3cf50d30b726129
|
@pohly can you self-nominate as an approver for |
/assign @dims For approval of logcheck changes. I'll also create a PR to add myself to OWNERS. |
/approve (hack/logcheck.conf looks good) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, dims, knelasevero 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
As per #111155 (review)
Only moved changes that touch startup or are changes that won't touch eventhandlers.go, schedule_one.go and pkg/scheduler/framework, pkg/scheduler/internal. I prefer to keep the bulk of the internal changes in that other PR.
Which issue(s) this PR fixes:
Related to #111155 and #91633
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: