Merge pull request #38611 from kargakis/log-controller-enqueues-on-minreadyseconds

Automatic merge from submit-queue (batch tested with PRs 38603, 38611)

Log enqueueing replica sets for availability checks

@kubernetes/deployment these logs should help debugging https://github.com/kubernetes/kubernetes/issues/38275 + https://github.com/kubernetes/kubernetes/issues/36458
pull/6/head
Kubernetes Submit Queue 2016-12-12 07:05:04 -08:00 committed by GitHub
commit b6f466ac61
2 changed files with 2 additions and 0 deletions

View File

@ -354,6 +354,7 @@ func (rsc *ReplicaSetController) updatePod(old, cur interface{}) {
// Note that this still suffers from #29229, we are just moving the problem one level
// "closer" to kubelet (from the deployment to the replica set controller).
if changedToReady && curRS.Spec.MinReadySeconds > 0 {
glog.V(2).Infof("ReplicaSet %q will be enqueued after %ds for availability check", curRS.Name, curRS.Spec.MinReadySeconds)
rsc.enqueueReplicaSetAfter(curRS, time.Duration(curRS.Spec.MinReadySeconds)*time.Second)
}
}

View File

@ -412,6 +412,7 @@ func (rm *ReplicationManager) updatePod(old, cur interface{}) {
// Note that this still suffers from #29229, we are just moving the problem one level
// "closer" to kubelet (from the deployment to the replication controller manager).
if changedToReady && curRC.Spec.MinReadySeconds > 0 {
glog.V(2).Infof("ReplicationController %q will be enqueued after %ds for availability check", curRC.Name, curRC.Spec.MinReadySeconds)
rm.enqueueControllerAfter(curRC, time.Duration(curRC.Spec.MinReadySeconds)*time.Second)
}
}