-
Notifications
You must be signed in to change notification settings - Fork 520
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
feature: use contextal logging #813
base: master
Are you sure you want to change the base?
feature: use contextal logging #813
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: googs1025 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-scheduler-plugins canceled.
|
111a6b2
to
1742b15
Compare
1742b15
to
737f913
Compare
/kind feature |
737f913
to
d933b58
Compare
@@ -211,6 +213,8 @@ func (pgMgr *PodGroupManager) PreFilter(ctx context.Context, pod *corev1.Pod) er | |||
|
|||
// Permit permits a pod to run, if the minMember match, it would send a signal to chan. | |||
func (pgMgr *PodGroupManager) Permit(ctx context.Context, state *framework.CycleState, pod *corev1.Pod) Status { | |||
lh := klog.FromContext(ctx) |
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.
klog.FromContext(ctx)
When using klog.FromContext(ctx), do I need to add WithValues to give it more information? 🤔
klog.FromContext(ctx).WithValues("PodGroupManager", "Unreserve")
What type of PR is this?
What this PR does / why we need it:
Due to the large scope, I may only be able to complete part of the plugins work in this PR.
Which issue(s) this PR fixes:
Fixes # part of #743
Special notes for your reviewer:
Does this PR introduce a user-facing change?