mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
c69e6777bd
* 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>
35 lines
912 B
Python
35 lines
912 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "upgrade",
|
|
srcs = [
|
|
"terraform.go",
|
|
"upgrade.go",
|
|
],
|
|
importpath = "github.com/edgelesssys/constellation/v2/cli/internal/upgrade",
|
|
visibility = ["//cli:__subpackages__"],
|
|
deps = [
|
|
"//cli/internal/clusterid",
|
|
"//cli/internal/terraform",
|
|
"//internal/cloud/cloudprovider",
|
|
"//internal/constants",
|
|
"//internal/file",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "upgrade_test",
|
|
srcs = ["terraform_test.go"],
|
|
embed = [":upgrade"],
|
|
deps = [
|
|
"//cli/internal/terraform",
|
|
"//internal/cloud/cloudprovider",
|
|
"//internal/constants",
|
|
"//internal/file",
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|