mirror of https://github.com/k3s-io/k3s
Merge pull request #32100 from wojtek-t/fix_rc_log
Automatic merge from submit-queue Fix debugging log in RC Ref #31981pull/6/head
commit
065fad7ad1
|
@ -320,7 +320,7 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) {
|
||||||
rm.lookupCache.InvalidateAll()
|
rm.lookupCache.InvalidateAll()
|
||||||
}
|
}
|
||||||
// TODO: Remove when #31981 is resolved!
|
// 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)
|
glog.Infof("Observed updated replication controller %v. Desired pod count change: %d->%d", curRC.Name, oldRC.Spec.Replicas, curRC.Spec.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
|
||||||
|
@ -335,6 +335,7 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) {
|
||||||
// that bad as rcs that haven't met expectations yet won't
|
// that bad as rcs that haven't met expectations yet won't
|
||||||
// sync, and all the listing is done using local stores.
|
// sync, and all the listing is done using local stores.
|
||||||
if oldRC.Status.Replicas != curRC.Status.Replicas {
|
if oldRC.Status.Replicas != curRC.Status.Replicas {
|
||||||
|
// TODO: Should we log status or spec?
|
||||||
glog.V(4).Infof("Observed updated replica count for rc: %v, %d->%d", curRC.Name, oldRC.Status.Replicas, curRC.Status.Replicas)
|
glog.V(4).Infof("Observed updated replica count for rc: %v, %d->%d", curRC.Name, oldRC.Status.Replicas, curRC.Status.Replicas)
|
||||||
}
|
}
|
||||||
rm.enqueueController(cur)
|
rm.enqueueController(cur)
|
||||||
|
|
Loading…
Reference in New Issue