Skip to content

client-go bind method reliable? #1382

Open
@zj619

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions