constellation/cli/internal/cloudcmd
Moritz Sanft c69e6777bd
cli: Terraform migrations on upgrade (#1685)
* add terraform planning

* overwrite terraform files in upgrade workspace

* Revert "overwrite terraform files in upgrade workspace"

This reverts commit 8bdacfb8bef23ef2cdbdb06bad0855b3bbc42df0.

* prepare terraform workspace

* test upgrade integration

* print upgrade abort

* rename plan file

* write output to file

* add show plan test

* add upgrade tf workdir

* fix workspace preparing

* squash to 1 command

* test

* bazel build

* plan test

* register flag manually

* bazel tidy

* fix linter

* remove MAA variable

* fix workdir

* accept tf variables

* variable fetching

* fix resource indices

* accept Terraform targets

* refactor upgrade command

* Terraform migration apply unit test

* pass down image fetcher to test

* use new flags in e2e test

* move file name to constant

* update buildfiles

* fix version constant

* conditionally create MAA

* move interface down

* upgrade dir

* update buildfiles

* fix interface

* fix createMAA check

* fix imports

* update buildfiles

* wip: workspace backup

* copy utils

* backup upgrade workspace

* remove debug print

* replace old state after upgrade

* check if flag exists

* prepare test workspace

* remove prefix

Co-authored-by: Otto Bittner <cobittner@posteo.net>

* respect file permissions

* refactor tf upgrader

* check workspace before upgrades

* remove temp upgrade dir after completion

* clean up workspace after abortion

* fix upgrade apply test

* fix linter

---------

Co-authored-by: Otto Bittner <cobittner@posteo.net>
2023-05-22 13:31:20 +02:00
..
BUILD.bazel config: add separate option for handling attestation parameters (#1623) 2023-05-03 11:11:53 +02:00
clients_test.go cli: Terraform migrations on upgrade (#1685) 2023-05-22 13:31:20 +02:00
clients.go cli: Terraform migrations on upgrade (#1685) 2023-05-22 13:31:20 +02:00
cloudcmd.go dev-docs: Go package docs (#958) 2023-01-19 15:57:50 +01:00
create_test.go cli: new flag to set the attestation type for config generate (#1769) 2023-05-17 16:53:56 +02:00
create.go cli: implement qemu direct linux boot 2023-05-17 11:37:26 +02:00
iam_test.go cli: add Terraform log support (#1620) 2023-04-14 14:15:07 +02:00
iam.go cli: add Terraform log support (#1620) 2023-04-14 14:15:07 +02:00
rollback_test.go cli: add Terraform log support (#1620) 2023-04-14 14:15:07 +02:00
rollback.go cli: add Terraform log support (#1620) 2023-04-14 14:15:07 +02:00
terminate_test.go cli: add Terraform log support (#1620) 2023-04-14 14:15:07 +02:00
terminate.go cli: add Terraform log support (#1620) 2023-04-14 14:15:07 +02:00
validators_test.go cli: add verify support for TDX 2023-05-17 11:37:26 +02:00
validators.go cli: improve error handling for validator 2023-05-17 11:37:26 +02:00