Closed arybolovlev closed 4 months ago
Is the intention of this feature to enable a behavior equivalent to setting queue_all_runs = true
in the tfe_workspace
resource of the TFE Terraform provider? Or am I misunderstanding?
I just gave this a try and I'm seeing the workspaces being created on TFC, but without any plans being automatically triggered. If I inspect the operator logs I see:
2024-03-22T21:25:19Z ERROR Reconcile Runs {"workspace": {"name":"kubernetes-tfc-workspace","namespace":"tfc-operator-system"}, "msg": "failed to create a new plan run", "error": "resource not found"}
2024-03-22T21:25:19Z ERROR Reconcile Runs {"workspace": {"name":"kubernetes-tfc-workspace","namespace":"tfc-operator-system"}, "msg": "failed to reconcile runs", "error": "resource not found"}
2024-03-22T21:25:19Z ERROR Workspace Controller {"workspace": {"name":"kubernetes-tfc-workspace","namespace":"tfc-operator-system"}, "msg": "reconcile workspace", "error": "resource not found"}
Description
This PR adds three new annotations to the Workspace controller to trigger a new run.
workspace.app.terraform.io/run-new
workspace.app.terraform.io/run-terraform-version
workspace.app.terraform.io/run-type
Tests
Usage Example
References
Community Note