constellation/internal
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
..
atls atls: fix link in README.md (#1545) 2023-03-29 13:33:19 +02:00
attestation image: update measurements and image version (#1798) 2023-05-19 18:17:53 +02:00
cloud cli: deploy cinder as OpenStack CSI plugin 2023-05-17 15:20:39 +02:00
compatibility bazel: add build files for go (#1186) 2023-03-09 15:23:42 +01:00
config image: update measurements and image version (#1798) 2023-05-19 18:17:53 +02:00
constants cli: Terraform migrations on upgrade (#1685) 2023-05-22 13:31:20 +02:00
containerimage cli: use Bazel container images 2023-04-18 15:35:15 +02:00
crypto bazel: add build files for go (#1186) 2023-03-09 15:23:42 +01:00
cryptsetup bazel: add build files for go (#1186) 2023-03-09 15:23:42 +01:00
deploy/helm bazel: add build files for go (#1186) 2023-03-09 15:23:42 +01:00
file cli: Terraform migrations on upgrade (#1685) 2023-05-22 13:31:20 +02:00
grpc deps: update Google SDK (#1748) 2023-05-16 18:13:17 +02:00
installer go: remove redefinitions of builtins 2023-03-20 08:41:01 -04:00
kms image: implement idempotent upload of os images 2023-05-05 12:06:44 +02:00
kubernetes config: add separate option for handling attestation parameters (#1623) 2023-05-03 11:11:53 +02:00
license license: remove check for Azure.ConfidentialVM (#1602) 2023-04-03 19:19:54 +02:00
logger bazel: add build files for go (#1186) 2023-03-09 15:23:42 +01:00
nodestate bazel: add build files for go (#1186) 2023-03-09 15:23:42 +01:00
osimage image: include stream in gcp image name (#1768) 2023-05-16 12:38:38 +02:00
retry bazel: add build files for go (#1186) 2023-03-09 15:23:42 +01:00
role bazel: add build files for go (#1186) 2023-03-09 15:23:42 +01:00
semver internal: semver support for pseudoversions (#1564) 2023-04-03 10:48:28 +02:00
sigstore bazel: add build files for go (#1186) 2023-03-09 15:23:42 +01:00
variant cli: new flag to set the attestation type for config generate (#1769) 2023-05-17 16:53:56 +02:00
versions deps: update K8s constrained GCP versions (#1565) 2023-05-05 14:30:48 +02:00
versionsapi versionsapi: increase cloudfront cache invalidation timeout 2023-05-05 12:06:44 +02:00
watcher measurements: Add length field for WithAllBytes 2023-05-17 11:37:26 +02:00