Skip to main content

BuildRawPod

BuildRawPod constructs a PodSpec and ObjectMeta based on the definition passed by the TaskExecutionContext. This definition does not include any configuration injected by Flyte.

def BuildRawPod(
ctx: context.Context,
tCtx: pluginsCore.TaskExecutionContext
) - > *v1.PodSpec, *metav1.ObjectMeta, string, error

Constructs a PodSpec and ObjectMeta based on the definition passed by the TaskExecutionContext. This definition does not include any configuration injected by Flyte.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for cancellation and deadlines.
tCtxpluginsCore.TaskExecutionContextThe task execution context providing access to task definitions and execution metadata.

Returns

TypeDescription
*v1.PodSpec, *metav1.ObjectMeta, string, errorA Kubernetes PodSpec, ObjectMeta, the primary container's name, and an error if construction fails.