terraform-provider-iterative
terraform-provider-iterative copied to clipboard
unify resources
Right now, functionality added to TPI resource_runner (to support CML) needs to be duplicated/separately added to TPI resource_task (for TPI task) and TPI resource_machine (for who-knows-what).
It's better to use the same code for all 3 resources:
resource_task(used by public CLI)resource_runner(used by internal CLI for CML)resource_machine(used by ??)
Either:
- make the above
resources share more golang code (abstract common functionality into one placecommon.go& make them all use said common functionality), - Or deprecate 2 of the above
resources
@casperdcl I do not fully understand the issue.
Do you mean that we have to expose task and machine resources within the cml CLI?
Updated description. Clearer now?