Skip to main content

DemystifySuccess

Checks if a pod's container statuses indicate an OOMKilled event despite an overall success status. If an OOMKilled event is detected, it returns a retryable failure; otherwise, it returns a success phase.

def DemystifySuccess(
status: v1.PodStatus,
info: pluginsCore.TaskInfo
) - > pluginsCore.PhaseInfo, error

Analyzes the status of a Kubernetes pod to determine if a reported success is misleading due to an OOMKilled event. This function helps to identify hidden failures that might otherwise be overlooked.

Parameters​

NameTypeDescription
statusv1.PodStatusThe Kubernetes PodStatus object containing information about the pod's current state, including container statuses.
infopluginsCore.TaskInfoAdditional task-related information that will be included in the returned PhaseInfo.

Returns​

TypeDescription
pluginsCore.PhaseInfo, errorA PhaseInfo indicating either success or a retryable failure if an OOMKilled event is detected, along with an error if one occurs.