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
| Name | Type | Description |
|---|---|---|
| r | *v1.ResourceRequirements | The desired resource requirements for the task, including CPU, memory, and other resource specifications. |
Returns
| Type | Description |
|---|---|
PluginTaskExecutionContextOption | A function that modifies a pluginTaskExecutionContext to include the specified resource requirements. |