hashicorp / terraform-cloud-operator

Kubernetes Operator allows managing HCP Terraform resources via Kubernetes Custom Resources.
https://developer.hashicorp.com/terraform/cloud-docs
Mozilla Public License 2.0
114 stars 27 forks source link

šŸš€ Add `--agent-pool-sync-period` CLI option #421

Closed arybolovlev closed 1 day ago

arybolovlev commented 1 month ago

Description

This PR introduces a new CLI option called --agent-pool-sync-period along with a corresponding controllers.agentPool.syncPeriod Helm chart option. It sets the time interval for re-queuing Agent Pool resources instead of pulling them all at once for reconciliation. This change helps distribute the workload of the AgentPool controller more evenly, especially when managing a large number of resources.

Tests

Usage Example

$ helm upgrade demo hashicorp/terraform-cloud-operator --set controllers.agentPool.syncPeriod=1m

References

N/A.

Community Note