mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 04:36:00 +00:00
Update e2e tests to list only schedulable nodes, to make them work with master Node registered.
This commit is contained in:
@@ -250,10 +250,8 @@ func truncate(b []byte, maxLen int) []byte {
|
||||
}
|
||||
|
||||
func pickNode(c *client.Client) (string, error) {
|
||||
nodes, err := c.Nodes().List(api.ListOptions{})
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
// TODO: investigate why it doesn't work on master Node.
|
||||
nodes := ListSchedulableNodesOrDie(c)
|
||||
if len(nodes.Items) == 0 {
|
||||
return "", fmt.Errorf("no nodes exist, can't test node proxy")
|
||||
}
|
||||
|
Reference in New Issue
Block a user