mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	fix swallowed error in kubectl rolling_updater
This commit is contained in:
		@@ -749,7 +749,9 @@ func AddDeploymentKeyToReplicationController(oldRc *api.ReplicationController, r
 | 
			
		||||
	// we've finished re-adopting existing pods to the rc.
 | 
			
		||||
	selector = labels.SelectorFromSet(selectorCopy)
 | 
			
		||||
	options = metav1.ListOptions{LabelSelector: selector.String()}
 | 
			
		||||
	podList, err = podClient.Pods(namespace).List(options)
 | 
			
		||||
	if podList, err = podClient.Pods(namespace).List(options); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	for ix := range podList.Items {
 | 
			
		||||
		pod := &podList.Items[ix]
 | 
			
		||||
		if value, found := pod.Labels[deploymentKey]; !found || value != deploymentValue {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user