2023-02-03 05:05:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "upgrade",
|
|
|
|
srcs = [
|
|
|
|
"helm.go",
|
|
|
|
"upgrade.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/e2e/internal/upgrade",
|
|
|
|
visibility = ["//e2e:__subpackages__"],
|
|
|
|
deps = [
|
2024-01-13 07:13:10 -05:00
|
|
|
"//internal/api/attestationconfigapi",
|
|
|
|
"//internal/config",
|
2023-02-03 05:05:42 -05:00
|
|
|
"//internal/constants",
|
2024-01-13 07:13:10 -05:00
|
|
|
"//internal/file",
|
|
|
|
"//internal/imagefetcher",
|
2023-02-03 05:05:42 -05:00
|
|
|
"//internal/logger",
|
2023-07-25 08:20:25 -04:00
|
|
|
"//internal/semver",
|
2024-01-13 07:13:10 -05:00
|
|
|
"//internal/versions",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@io_bazel_rules_go//go/runfiles:go_default_library",
|
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
|
|
|
|
"@io_k8s_client_go//kubernetes",
|
2023-02-03 05:05:42 -05:00
|
|
|
"@sh_helm_helm_v3//pkg/action",
|
|
|
|
"@sh_helm_helm_v3//pkg/cli",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "upgrade_test",
|
|
|
|
srcs = ["upgrade_test.go"],
|
2023-06-02 03:19:23 -04:00
|
|
|
# keep
|
2023-02-03 05:05:42 -05:00
|
|
|
count = 1,
|
|
|
|
data = [
|
2023-06-06 09:22:06 -04:00
|
|
|
"//cli:cli_enterprise_host",
|
2023-02-03 05:05:42 -05:00
|
|
|
],
|
|
|
|
embed = [":upgrade"],
|
|
|
|
env = {
|
2023-06-06 09:22:06 -04:00
|
|
|
"PATH_CLI": "$(rlocationpath //cli:cli_enterprise_host)",
|
2023-02-03 05:05:42 -05:00
|
|
|
},
|
2023-06-02 03:19:23 -04:00
|
|
|
# keep
|
2023-02-03 05:05:42 -05:00
|
|
|
gotags = ["e2e"],
|
|
|
|
tags = ["manual"],
|
|
|
|
deps = [
|
|
|
|
"//e2e/internal/kubectl",
|
|
|
|
"//internal/constants",
|
2023-05-16 09:21:35 -04:00
|
|
|
"//internal/versions",
|
2023-02-03 05:05:42 -05:00
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@io_k8s_api//core/v1:core",
|
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
|
|
|
|
"@io_k8s_client_go//kubernetes",
|
|
|
|
],
|
|
|
|
)
|