UpdatePod
Updates the base pod spec used to execute tasks, configuring it with plugins and task metadata-specific options.
def UpdatePod(
taskExecutionMetadata: pluginsCore.TaskExecutionMetadata,
resourceRequirements: []v1.ResourceRequirements,
podSpec: *v1.PodSpec
) - > null
Updates the base pod spec used to execute tasks. This function configures the pod with plugins and task metadata-specific options, ensuring that essential Kubernetes pod settings are applied or defaulted.
Parameters
| Name | Type | Description |
|---|---|---|
| taskExecutionMetadata | pluginsCore.TaskExecutionMetadata | Metadata about the task execution, used to determine configurations like interruptibility and Kubernetes service account. |
| resourceRequirements | []v1.ResourceRequirements | A slice of Kubernetes resource requirements, used to determine appropriate pod tolerations. |
| podSpec | *v1.PodSpec | A pointer to the Kubernetes PodSpec to be updated. This object will be modified in place with default values and configurations derived from task metadata and plugin settings. |
Returns
| Type | Description |
|---|---|
null | This function does not return any value; it modifies the provided podSpec in place. |