mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Wait for only enough no. of RC replicas to be running in testutil
This commit is contained in:
		@@ -2811,7 +2811,11 @@ func WaitForControlledPodsRunning(c clientset.Interface, ns, name string, kind s
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	err = testutils.WaitForPodsWithLabelRunning(c, ns, selector)
 | 
			
		||||
	replicas, err := getReplicasFromRuntimeObject(rtObject)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	err = testutils.WaitForEnoughPodsWithLabelRunning(c, ns, selector, int(replicas))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("Error while waiting for replication controller %s pods to be running: %v", name, err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user