Merge pull request #32079 from gmarek/load

Add a log to help debug #31981
This commit is contained in:
Marek Grabowski 2016-09-05 16:09:51 +02:00 committed by GitHub
commit 9767c26093
2 changed files with 3 additions and 1 deletions

View File

@ -319,6 +319,8 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) {
if !reflect.DeepEqual(oldRC.Spec.Selector, curRC.Spec.Selector) {
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
// controller when Spec changes, but it is safer to sync any