You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the runner container in tofu-controller does not support the configuration of resource requests and limits (CPU and memory). This feature is critical for environments where resource allocation needs to be tightly managed.
Proposal
Introduce a mechanism to allow users to set CPU and memory resource requests and limits for the runner container via configuration.
Suggested Implementation
Extend the controller’s configuration schema to include resource parameters (e.g., resources.requests and resources.limits).
Update the runner container’s pod spec to apply the specified resource values during pod creation.
Provide clear documentation and examples to guide users on how to set these values.
Hi @akselleirv, while the controller code has been updated to allow setting resources (see: tf_controller_runner.go#L261), this functionality still doesn’t work. The issue lies in the CRD not being updated accordingly. As a result, the controller throws the following error when attempting to apply a Terraform resource with resources configured:
error validating data: ValidationError(Terraform.spec.runnerPodTemplate.spec): unknown field "resources" in io.fluxcd.contrib.infra.v1alpha2.Terraform.spec.runnerPodTemplate.spec
I deployed tf-controller v0.16.0-rc.2 using helm chart.
Description
Currently, the runner container in tofu-controller does not support the configuration of resource requests and limits (CPU and memory). This feature is critical for environments where resource allocation needs to be tightly managed.
Proposal
Introduce a mechanism to allow users to set CPU and memory resource requests and limits for the runner container via configuration.
Suggested Implementation
Example Configuration
Use Cases
Additional Notes
The text was updated successfully, but these errors were encountered: