mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Use passed context in default binder
Signed-off-by: Aldo Culquicondor <acondor@google.com>
This commit is contained in:
		@@ -53,7 +53,7 @@ func (b DefaultBinder) Bind(ctx context.Context, state *framework.CycleState, p
 | 
			
		||||
		ObjectMeta: metav1.ObjectMeta{Namespace: p.Namespace, Name: p.Name, UID: p.UID},
 | 
			
		||||
		Target:     v1.ObjectReference{Kind: "Node", Name: nodeName},
 | 
			
		||||
	}
 | 
			
		||||
	err := b.handle.ClientSet().CoreV1().Pods(binding.Namespace).Bind(context.TODO(), binding, metav1.CreateOptions{})
 | 
			
		||||
	err := b.handle.ClientSet().CoreV1().Pods(binding.Namespace).Bind(ctx, binding, metav1.CreateOptions{})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return framework.NewStatus(framework.Error, err.Error())
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user