mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
DeamonSet test expect daemons on unschedulable Nodes
This commit is contained in:
parent
38a30490ed
commit
ba8a67e554
@ -289,7 +289,8 @@ func checkDaemonPodOnNodes(f *Framework, selector map[string]string, nodeNames [
|
|||||||
|
|
||||||
func checkRunningOnAllNodes(f *Framework, selector map[string]string) func() (bool, error) {
|
func checkRunningOnAllNodes(f *Framework, selector map[string]string) func() (bool, error) {
|
||||||
return func() (bool, error) {
|
return func() (bool, error) {
|
||||||
nodeList := ListSchedulableNodesOrDie(f.Client)
|
nodeList, err := f.Client.Nodes().List(api.ListOptions{})
|
||||||
|
expectNoError(err)
|
||||||
nodeNames := make([]string, 0)
|
nodeNames := make([]string, 0)
|
||||||
for _, node := range nodeList.Items {
|
for _, node := range nodeList.Items {
|
||||||
nodeNames = append(nodeNames, node.Name)
|
nodeNames = append(nodeNames, node.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user