Skip to main content

BuildRawContainer

BuildRawContainer constructs a Container based on the definition passed by the TaskExecutionContext.

def BuildRawContainer(
ctx: context.Context,
tCtx: pluginscore.TaskExecutionContext
) - > *v1.Container, error

Constructs a Kubernetes Container object based on the definition provided by the TaskExecutionContext. This function is used to prepare the container specification for task execution within a Kubernetes environment.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for cancellation and deadlines.
tCtxpluginscore.TaskExecutionContextThe task execution context, which provides access to task definitions, metadata, and overrides necessary to build the container.

Returns

TypeDescription
*v1.Container, errorA pointer to a Kubernetes Container object and an error if the container cannot be built due to invalid task specification or resource requirements.