MergeResources
Merges resource requirements from an input v1.ResourceRequirements object into an output v1.ResourceRequirements object. It updates or sets the Limits and Requests fields of the output object based on the input.
def MergeResources(
in: v1.ResourceRequirements,
out: *v1.ResourceRequirements
) - > null
Merges resource requirements from an input object into an output object. This function is used to combine resource specifications, ensuring that if the output object's limits or requests are not set, they inherit from the input, or individual resource keys are updated.
Parameters
| Name | Type | Description |
|---|---|---|
| in | v1.ResourceRequirements | The source resource requirements object from which limits and requests will be merged. |
| out | *v1.ResourceRequirements | The destination resource requirements object to which limits and requests will be merged. This object is modified in place. |
Returns
| Type | Description |
|---|---|
null | This function does not return any value; it modifies the 'out' parameter in place. |