Malte Poll
8da6a23aa5
bootstrapper: add fallback endpoint and custom endpoint to SAN field ( #2108 )
...
terraform: collect apiserver cert SANs and support custom endpoint
constants: add new constants for cluster configuration and custom endpoint
cloud: support apiserver cert sans and prepare for endpoint migration on AWS
config: add customEndpoint field
bootstrapper: use per-CSP apiserver cert SANs
cli: route customEndpoint to terraform and add migration for apiserver cert SANs
bootstrapper: change interface of GetLoadBalancerEndpoint to return host and port separately
2023-07-21 16:43:51 +02:00
Moritz Sanft
5f71934f56
cli: write Terraform migration output directly to constellation-id.json
( #2107 )
...
* backup `constellation-id.json` before upgrade
* remove superfluous `file.Handler` arguments
* merge `constellation-id.json` on upgrade
* fix typo
2023-07-18 09:33:42 +02:00
Moritz Sanft
fe0b8c1e5b
remove Terraform targets ( #1970 )
2023-06-27 11:27:50 +02:00
Moritz Sanft
b25228d175
cli: store upgrade files in versioned folders ( #1929 )
...
* upgrade versioning
* dont pass upgrade kind as boolean
* whitespace
* fix godot lint check
* clarify upgrade check directory suffix
* cli: dry-run Terraform migrations on `upgrade check` (#1942 )
* dry-run Terraform migrations on upgrade check
* clean whole upgrade dir
* clean up check workspace after planning
* fix parsing
* extend upgrade check test
* rename unused parameters
* exclude false positives in test
2023-06-21 09:22:32 +02:00
Moritz Sanft
8c3b963a3f
cli: Terraform upgrades maa patching ( #1821 )
...
* patch maa after upgrade
* buildfiles
* reword comment
* remove whitespace
* temp: log measurements URL
* temp: update import
* ignore changes to attestation policies
* add issue URL
* separate output in e2e upgrade test
* use enterprise CLI for e2e test
* remove measurements print
* add license headers
2023-06-02 10:47:44 +02:00
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