hashicorp / hcp-terraform-operator

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

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

Closed arybolovlev closed 4 months ago

arybolovlev commented 5 months 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