-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
This is a suggestion related to #15. It would be very nice to have the latest status event time be labeled/annotated on the pod. There is an event produced for this, but events being best-effort (may be dropped) and temporary, a label/annotation could provide this data more reliably (and from pod-state).
Perhaps by adding a label in the pod labeller's setLabel method with the value of status.EventTime:
zeropod/manager/pod_labeller.go
Lines 38 to 43 in 0ee8461
| func (pu *PodLabeller) setLabel(pod *corev1.Pod, status *v1.ContainerStatus) { | |
| if pod.Labels == nil { | |
| pod.Labels = map[string]string{} | |
| } | |
| pod.Labels[path.Join(StatusLabelKeyPrefix, status.Name)] = status.Phase.String() | |
| } |
What do you think?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels