kubernetes/client-go

client-go bind method reliable?

Opened this issue · 0 comments

zj619 commented

Hello, currently we use the return error of bind method to determine bind successful or not,

err :=client.ClientSet().CoreV1().Pods(binding.Namespace).Bind(ctx, binding, metav1.CreateOptions{})
if err != nil {
	//bind pod to node failed
}
// bind pod to node success

I wonder if there exists the situation that bind method returns some errors like network time out, while
in the k8s side, the pod binds to the node successfully?