Skip to main content

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

NameTypeDescription
taskExecutionMetadatapluginsCore.TaskExecutionMetadataMetadata about the task execution, used to determine configurations like interruptibility and Kubernetes service account.
resourceRequirements[]v1.ResourceRequirementsA slice of Kubernetes resource requirements, used to determine appropriate pod tolerations.
podSpec*v1.PodSpecA 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

TypeDescription
nullThis function does not return any value; it modifies the provided podSpec in place.