mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	refactor: move ListOptions references to metav1
This commit is contained in:
		@@ -23,6 +23,7 @@ import (
 | 
			
		||||
	"strings"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
			
		||||
	"k8s.io/apimachinery/pkg/fields"
 | 
			
		||||
	"k8s.io/apimachinery/pkg/util/wait"
 | 
			
		||||
	"k8s.io/kubernetes/pkg/api/v1"
 | 
			
		||||
@@ -153,7 +154,7 @@ func CheckNodesReady(c clientset.Interface, nt time.Duration, expect int) ([]str
 | 
			
		||||
		// A rolling-update (GCE/GKE implementation of restart) can complete before the apiserver
 | 
			
		||||
		// knows about all of the nodes. Thus, we retry the list nodes call
 | 
			
		||||
		// until we get the expected number of nodes.
 | 
			
		||||
		nodeList, errLast = c.Core().Nodes().List(v1.ListOptions{
 | 
			
		||||
		nodeList, errLast = c.Core().Nodes().List(metav1.ListOptions{
 | 
			
		||||
			FieldSelector: fields.Set{"spec.unschedulable": "false"}.AsSelector().String()})
 | 
			
		||||
		if errLast != nil {
 | 
			
		||||
			return false, nil
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user