Skip to content

Commit 71277de

Browse files
authored
Merge pull request kubernetes#91069 from alculquicondor/bind_ctx
Use passed context in default binder
2 parents 9e88546 + 78fca66 commit 71277de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/scheduler/framework/plugins/defaultbinder/default_binder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (b DefaultBinder) Bind(ctx context.Context, state *framework.CycleState, p
5353
ObjectMeta: metav1.ObjectMeta{Namespace: p.Namespace, Name: p.Name, UID: p.UID},
5454
Target: v1.ObjectReference{Kind: "Node", Name: nodeName},
5555
}
56-
err := b.handle.ClientSet().CoreV1().Pods(binding.Namespace).Bind(context.TODO(), binding, metav1.CreateOptions{})
56+
err := b.handle.ClientSet().CoreV1().Pods(binding.Namespace).Bind(ctx, binding, metav1.CreateOptions{})
5757
if err != nil {
5858
return framework.NewStatus(framework.Error, err.Error())
5959
}

0 commit comments

Comments
 (0)