From 07d25fdc47c27c6f4558a9425bafbcef2b17e95d Mon Sep 17 00:00:00 2001 From: Janet Kuo Date: Tue, 19 Jul 2016 14:08:28 -0700 Subject: [PATCH] Log the time when checking deployment's pod availability --- pkg/controller/deployment/util/deployment_util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/deployment/util/deployment_util.go b/pkg/controller/deployment/util/deployment_util.go index 16eb42b249a..e7ecd36aa91 100644 --- a/pkg/controller/deployment/util/deployment_util.go +++ b/pkg/controller/deployment/util/deployment_util.go @@ -623,6 +623,7 @@ func IsPodAvailable(pod *api.Pod, minReadySeconds int32, now time.Time) bool { for _, c := range pod.Status.Conditions { // we only care about pod ready conditions if c.Type == api.PodReady && c.Status == api.ConditionTrue { + glog.V(4).Infof("Comparing pod %s/%s ready condition last transition time %s + minReadySeconds %d with now %s.", pod.Namespace, pod.Name, c.LastTransitionTime.String(), minReadySeconds, now.String()) // 2 cases that this ready condition is valid (passed minReadySeconds, i.e. the pod is available): // 1. minReadySeconds == 0, or // 2. LastTransitionTime (is set) + minReadySeconds (>0) < current time