Skip to main content

WithResources

No overview available.

def WithResources(
r: *v1.ResourceRequirements
) - > PluginTaskExecutionContextOption

Configures the resource requirements for a plugin task execution. This function allows a caller to specify the CPU, memory, and other resource needs for a task, overriding any default settings.

Parameters

NameTypeDescription
r*v1.ResourceRequirementsThe desired resource requirements for the task, including CPU, memory, and other resource specifications.

Returns

TypeDescription
PluginTaskExecutionContextOptionA function that modifies a pluginTaskExecutionContext to include the specified resource requirements.