Skip to content

Commit

Permalink
Make kubelet first acknowledge time of a pod as Pod.Status.StartTime.
Browse files Browse the repository at this point in the history
  • Loading branch information
dchen1107 committed Jun 18, 2015
1 parent 838bb75 commit 1145e4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/kubelet/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,9 @@ func (kl *Kubelet) syncPod(pod *api.Pod, mirrorPod *api.Pod, runningPod kubecont
var podStatus api.PodStatus
if updateType == SyncPodCreate {
podStatus = pod.Status
glog.V(3).Infof("Not generating pod status for new pod %v", podFullName)
podStatus.StartTime = &util.Time{start}
kl.statusManager.SetPodStatus(pod, podStatus)
glog.V(3).Infof("Not generating pod status for new pod %q", podFullName)
} else {
var err error
podStatus, err = kl.generatePodStatus(pod)
Expand Down

0 comments on commit 1145e4b

Please sign in to comment.