Skip to content

Commit 6c3d4bd

Browse files
Marcin MaciaszczykMarcin Maciaszczyk
authored andcommitted
Fix pod age API call
1 parent b7867cd commit 6c3d4bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/backend/replicationcontrollerdetail.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type ReplicationControllerPod struct {
6464
PodPhase api.PodPhase `json:"podPhase"`
6565

6666
// Time the Pod has started. Empty if not started.
67-
StartTime *unversioned.Time `json:"startTime"`
67+
StartTime unversioned.Time `json:"startTime"`
6868

6969
// IP address of the Pod.
7070
PodIP string `json:"podIP"`
@@ -178,7 +178,7 @@ func GetReplicationControllerDetail(client client.Interface, heapsterClient Heap
178178
podDetail := ReplicationControllerPod{
179179
Name: pod.Name,
180180
PodPhase: pod.Status.Phase,
181-
StartTime: pod.Status.StartTime,
181+
StartTime: pod.CreationTimestamp,
182182
PodIP: pod.Status.PodIP,
183183
NodeName: pod.Spec.NodeName,
184184
RestartCount: getRestartCount(pod),

0 commit comments

Comments
 (0)