mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 13:50:01 +00:00 
			
		
		
		
	Add a log to help debug #31981
This commit is contained in:
		| @@ -319,6 +319,8 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) { | |||||||
| 	if !reflect.DeepEqual(oldRC.Spec.Selector, curRC.Spec.Selector) { | 	if !reflect.DeepEqual(oldRC.Spec.Selector, curRC.Spec.Selector) { | ||||||
| 		rm.lookupCache.InvalidateAll() | 		rm.lookupCache.InvalidateAll() | ||||||
| 	} | 	} | ||||||
|  | 	// TODO: Remove when #31981 is resolved! | ||||||
|  | 	glog.Infof("Observed updated replication controller %v. Pod count change: %d->%d", curRC.Name, oldRC.Status.Replicas, curRC.Status.Replicas) | ||||||
|  |  | ||||||
| 	// You might imagine that we only really need to enqueue the | 	// You might imagine that we only really need to enqueue the | ||||||
| 	// controller when Spec changes, but it is safer to sync any | 	// controller when Spec changes, but it is safer to sync any | ||||||
|   | |||||||
| @@ -3367,7 +3367,7 @@ func DeleteRCAndWaitForGC(c *client.Client, ns, name string) error { | |||||||
| 	if rc.Spec.Replicas < 5000 { | 	if rc.Spec.Replicas < 5000 { | ||||||
| 		timeout = 10 * time.Minute | 		timeout = 10 * time.Minute | ||||||
| 	} else { | 	} else { | ||||||
| 		timeout = time.Duration(rc.Spec.Replicas / gcThroughput) * time.Second | 		timeout = time.Duration(rc.Spec.Replicas/gcThroughput) * time.Second | ||||||
| 	} | 	} | ||||||
| 	err = waitForPodsInactive(ps, interval, timeout) | 	err = waitForPodsInactive(ps, interval, timeout) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user