Skip to main content

GetReportedAt

Retrieves the 'reported at' timestamp for a given Kubernetes Pod by iterating through its conditions and finding the latest 'LastTransitionTime' for a 'PodCompleted' reason with 'PodReady' type and 'ConditionFalse' status.

def GetReportedAt(
pod: *v1.Pod
) - > metav1.Time

Retrieves the last reported time for a Kubernetes Pod, specifically looking for the 'PodCompleted' condition. This function is used to determine when a pod finished its execution.

Parameters

NameTypeDescription
pod*v1.PodThe Kubernetes Pod object from which to extract the reported time. This object contains the status conditions to be evaluated.

Returns

TypeDescription
metav1.TimeThe LastTransitionTime of the 'PodCompleted' condition if found, otherwise a zero-value metav1.Time.