terraform-provider-iterative icon indicating copy to clipboard operation
terraform-provider-iterative copied to clipboard

unify resources

Open casperdcl opened this issue 3 years ago • 2 comments

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:

  1. make the above resources share more golang code (abstract common functionality into one place common.go & make them all use said common functionality),
  2. Or deprecate 2 of the above resources

casperdcl avatar Mar 29 '22 17:03 casperdcl

@casperdcl I do not fully understand the issue. Do you mean that we have to expose task and machine resources within the cml CLI?

DavidGOrtega avatar Mar 30 '22 11:03 DavidGOrtega

Updated description. Clearer now?

casperdcl avatar Apr 04 '22 23:04 casperdcl