DemystifyFailure
DemystifyFailure resolves the various Kubernetes pod failure modes to determine the most appropriate course of action.
def DemystifyFailure(
ctx: context.Context,
status: v1.PodStatus,
info: pluginsCore.TaskInfo,
primaryContainerName: string
) - > pluginsCore.PhaseInfo, error
Resolves various Kubernetes pod failure modes to determine the most appropriate course of action, identifying whether a failure is system-retryable or user-retryable.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, used for cancellation and tracing. |
| status | v1.PodStatus | The Kubernetes PodStatus object containing information about the pod's current state and any termination details. |
| info | pluginsCore.TaskInfo | Additional task-specific information used to enrich the failure details. |
| primaryContainerName | string | The name of the primary container within the pod, used to specifically identify system-level SIGKILL terminations. |
Returns
| Type | Description |
|---|---|
pluginsCore.PhaseInfo, error | A PhaseInfo object indicating the failure phase (system-retryable or user-retryable) and an error if one occurred during processing. |