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
| Name | Type | Description |
|---|---|---|
| status | v1.PodStatus | The Kubernetes PodStatus object containing information about the pod's current state, including container statuses. |
| info | pluginsCore.TaskInfo | Additional task-related information that will be included in the returned PhaseInfo. |
Returns
| Type | Description |
|---|---|
pluginsCore.PhaseInfo, error | A PhaseInfo indicating either a retryable failure if OOMKilled is detected, or a success, along with an error if any occurs during processing. |