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
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, used for cancellation and deadlines. |
| tCtx | pluginscore.TaskExecutionContext | The task execution context, which provides access to task definitions, metadata, and overrides necessary to build the container. |
Returns
| Type | Description |
|---|---|
*v1.Container, error | A pointer to a Kubernetes Container object and an error if the container cannot be built due to invalid task specification or resource requirements. |