rancher / dartboard

Code, instructions and results for scalability and performance tests on the Rancher product family
BSD 3-Clause "New" or "Revised" License
3 stars 6 forks source link

[RFE] Support Tofu/Terraform Workspaces #20

Open git-ival opened 1 week ago

git-ival commented 1 week ago

Various dartboard modules generate files (aka stateful artifacts) that are stored on the dartboard-runner machine. If using tofu/terraform workspaces, these files will be overwritten on a dartboard deploy or dartboard apply.

Suggestion: Ensure all modules that generate files place them in a directory prefixed with the terraform workspace name. ex: ${terraform.workspace}_config

moio commented 1 week ago

At the moment all files should be created inside of the main/$backend directory, which kind of acts as a "workspace"

I am totally open to making that parametric so that it can point elsewhere

git-ival commented 1 week ago

🤔 AFAIK files are created in the "main" module's ${path.root}/config/ directory. Which would mean changing workspaces with tofu workspace select <my other workspace> and re-deploying/applying will overwrite the files in that dir.

moio commented 14 hours ago

OK, so I misunderstood what "workspace" meant

reading https://opentofu.org/docs/cli/workspaces/ clarified the concept for me

I am totally OK with this change 👍