2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "cloudcmd",
|
|
|
|
srcs = [
|
|
|
|
"clients.go",
|
|
|
|
"cloudcmd.go",
|
2023-08-23 04:35:42 -04:00
|
|
|
"clusterupgrade.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"create.go",
|
|
|
|
"iam.go",
|
2023-08-23 04:35:42 -04:00
|
|
|
"iamupgrade.go",
|
2023-06-02 04:47:44 -04:00
|
|
|
"patch.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"rollback.go",
|
2023-08-11 09:18:59 -04:00
|
|
|
"serviceaccount.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"terminate.go",
|
2023-08-23 04:35:42 -04:00
|
|
|
"tfupgrade.go",
|
|
|
|
"tfvars.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"validators.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/cli/internal/cloudcmd",
|
|
|
|
visibility = ["//cli:__subpackages__"],
|
|
|
|
deps = [
|
2023-08-11 09:18:59 -04:00
|
|
|
"//cli/internal/cmd/pathprefix",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//cli/internal/libvirt",
|
2023-09-25 10:19:43 -04:00
|
|
|
"//cli/internal/state",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//cli/internal/terraform",
|
|
|
|
"//internal/atls",
|
2023-03-14 06:46:27 -04:00
|
|
|
"//internal/attestation/choose",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/attestation/measurements",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-08-11 09:18:59 -04:00
|
|
|
"//internal/cloud/azureshared",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
"//internal/cloud/gcpshared",
|
2023-08-11 09:18:59 -04:00
|
|
|
"//internal/cloud/openstack",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/config",
|
2023-08-23 04:35:42 -04:00
|
|
|
"//internal/constants",
|
2023-08-11 09:18:59 -04:00
|
|
|
"//internal/file",
|
2023-05-23 03:17:27 -04:00
|
|
|
"//internal/imagefetcher",
|
2023-06-22 10:53:40 -04:00
|
|
|
"//internal/role",
|
2023-03-20 08:33:04 -04:00
|
|
|
"@com_github_azure_azure_sdk_for_go//profiles/latest/attestation/attestation",
|
|
|
|
"@com_github_azure_azure_sdk_for_go_sdk_azcore//policy",
|
|
|
|
"@com_github_azure_azure_sdk_for_go_sdk_azidentity//:azidentity",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_spf13_cobra//:cobra",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "cloudcmd_test",
|
|
|
|
srcs = [
|
|
|
|
"clients_test.go",
|
2023-08-23 04:35:42 -04:00
|
|
|
"clusterupgrade_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"create_test.go",
|
|
|
|
"iam_test.go",
|
2023-06-02 04:47:44 -04:00
|
|
|
"patch_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"rollback_test.go",
|
|
|
|
"terminate_test.go",
|
2023-08-23 04:35:42 -04:00
|
|
|
"tfupgrade_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"validators_test.go",
|
|
|
|
],
|
|
|
|
embed = [":cloudcmd"],
|
|
|
|
deps = [
|
2023-09-25 10:19:43 -04:00
|
|
|
"//cli/internal/state",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//cli/internal/terraform",
|
|
|
|
"//internal/attestation/measurements",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
"//internal/cloud/gcpshared",
|
|
|
|
"//internal/config",
|
2023-08-23 04:35:42 -04:00
|
|
|
"//internal/constants",
|
|
|
|
"//internal/file",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
)
|