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 = "cmd",
|
|
|
|
srcs = [
|
|
|
|
"cloud.go",
|
|
|
|
"cmd.go",
|
|
|
|
"config.go",
|
|
|
|
"configfetchmeasurements.go",
|
|
|
|
"configgenerate.go",
|
|
|
|
"configinstancetypes.go",
|
|
|
|
"configkubernetesversions.go",
|
2023-05-03 05:11:53 -04:00
|
|
|
"configmigrate.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"create.go",
|
|
|
|
"iamcreate.go",
|
|
|
|
"iamdestroy.go",
|
|
|
|
"init.go",
|
|
|
|
"log.go",
|
2023-06-27 07:12:50 -04:00
|
|
|
"manualtfstatemigration.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"mini.go",
|
|
|
|
"minidown.go",
|
|
|
|
"miniup.go",
|
2023-05-30 06:02:43 -04:00
|
|
|
"miniup_cross.go",
|
|
|
|
"miniup_linux_amd64.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"recover.go",
|
|
|
|
"spinner.go",
|
2023-03-24 06:51:18 -04:00
|
|
|
"status.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"terminate.go",
|
2023-07-24 04:30:53 -04:00
|
|
|
"tfmigrationclient.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"upgrade.go",
|
|
|
|
"upgradeapply.go",
|
|
|
|
"upgradecheck.go",
|
|
|
|
"userinteraction.go",
|
|
|
|
"validargs.go",
|
|
|
|
"verify.go",
|
|
|
|
"version.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/cli/internal/cmd",
|
|
|
|
visibility = ["//cli:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//bootstrapper/initproto",
|
|
|
|
"//cli/internal/cloudcmd",
|
|
|
|
"//cli/internal/clusterid",
|
2023-05-26 11:50:55 -04:00
|
|
|
"//cli/internal/featureset",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//cli/internal/helm",
|
|
|
|
"//cli/internal/iamid",
|
2023-03-30 10:13:14 -04:00
|
|
|
"//cli/internal/kubernetes",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//cli/internal/libvirt",
|
|
|
|
"//cli/internal/terraform",
|
2023-05-22 07:31:20 -04:00
|
|
|
"//cli/internal/upgrade",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//disk-mapper/recoverproto",
|
2023-06-07 10:16:32 -04:00
|
|
|
"//internal/api/attestationconfigapi",
|
2023-05-25 12:43:44 -04:00
|
|
|
"//internal/api/fetcher",
|
2023-06-07 10:16:32 -04:00
|
|
|
"//internal/api/versionsapi",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/atls",
|
|
|
|
"//internal/attestation/measurements",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/cloud/azureshared",
|
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
"//internal/cloud/gcpshared",
|
2023-03-17 04:43:22 -04:00
|
|
|
"//internal/cloud/openstack",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/compatibility",
|
|
|
|
"//internal/config",
|
|
|
|
"//internal/config/instancetypes",
|
2023-05-03 05:11:53 -04:00
|
|
|
"//internal/config/migration",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/constants",
|
|
|
|
"//internal/crypto",
|
2023-07-07 11:09:45 -04:00
|
|
|
"//internal/deploy/helm",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/file",
|
|
|
|
"//internal/grpc/dialer",
|
2023-06-12 07:45:34 -04:00
|
|
|
"//internal/grpc/grpclog",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/grpc/retry",
|
2023-05-23 03:17:27 -04:00
|
|
|
"//internal/imagefetcher",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/kms/uri",
|
|
|
|
"//internal/kubernetes/kubectl",
|
|
|
|
"//internal/license",
|
|
|
|
"//internal/logger",
|
|
|
|
"//internal/retry",
|
2023-04-03 08:31:17 -04:00
|
|
|
"//internal/semver",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/sigstore",
|
|
|
|
"//internal/versions",
|
2023-03-24 06:51:18 -04:00
|
|
|
"//operators/constellation-node-operator/api/v1alpha1",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//verify/verifyproto",
|
|
|
|
"@com_github_mattn_go_isatty//:go-isatty",
|
|
|
|
"@com_github_siderolabs_talos_pkg_machinery//config/encoder",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
"@com_github_spf13_cobra//:cobra",
|
2023-07-07 11:02:01 -04:00
|
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
2023-03-14 13:34:58 -04:00
|
|
|
"@io_k8s_api//core/v1:core",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@io_k8s_apimachinery//pkg/runtime",
|
2023-03-24 06:51:18 -04:00
|
|
|
"@io_k8s_client_go//dynamic",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@io_k8s_client_go//tools/clientcmd",
|
|
|
|
"@io_k8s_client_go//tools/clientcmd/api/latest",
|
|
|
|
"@io_k8s_sigs_yaml//:yaml",
|
|
|
|
"@org_golang_google_grpc//:go_default_library",
|
|
|
|
"@org_golang_x_mod//semver",
|
|
|
|
"@org_uber_go_zap//zapcore",
|
2023-05-30 06:02:43 -04:00
|
|
|
] + select({
|
|
|
|
"@io_bazel_rules_go//go/platform:android_amd64": [
|
|
|
|
"@org_golang_x_sys//unix",
|
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:linux_amd64": [
|
|
|
|
"@org_golang_x_sys//unix",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2023-03-09 09:23:42 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "cmd_test",
|
|
|
|
srcs = [
|
|
|
|
"cloud_test.go",
|
|
|
|
"configfetchmeasurements_test.go",
|
|
|
|
"configgenerate_test.go",
|
|
|
|
"create_test.go",
|
|
|
|
"iamcreate_test.go",
|
|
|
|
"iamdestroy_test.go",
|
|
|
|
"init_test.go",
|
|
|
|
"recover_test.go",
|
|
|
|
"spinner_test.go",
|
2023-03-24 06:51:18 -04:00
|
|
|
"status_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"terminate_test.go",
|
|
|
|
"upgradeapply_test.go",
|
|
|
|
"upgradecheck_test.go",
|
|
|
|
"userinteraction_test.go",
|
|
|
|
"validargs_test.go",
|
|
|
|
"verifier_test.go",
|
|
|
|
"verify_test.go",
|
|
|
|
"version_test.go",
|
|
|
|
],
|
|
|
|
embed = [":cmd"],
|
|
|
|
deps = [
|
|
|
|
"//bootstrapper/initproto",
|
|
|
|
"//cli/internal/cloudcmd",
|
|
|
|
"//cli/internal/clusterid",
|
2023-03-24 06:51:18 -04:00
|
|
|
"//cli/internal/helm",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//cli/internal/iamid",
|
2023-03-30 10:13:14 -04:00
|
|
|
"//cli/internal/kubernetes",
|
2023-04-14 08:15:07 -04:00
|
|
|
"//cli/internal/terraform",
|
2023-05-22 07:31:20 -04:00
|
|
|
"//cli/internal/upgrade",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//disk-mapper/recoverproto",
|
2023-06-07 10:16:32 -04:00
|
|
|
"//internal/api/attestationconfigapi",
|
|
|
|
"//internal/api/versionsapi",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/atls",
|
|
|
|
"//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",
|
|
|
|
"//internal/constants",
|
|
|
|
"//internal/crypto/testvector",
|
|
|
|
"//internal/file",
|
|
|
|
"//internal/grpc/atlscredentials",
|
|
|
|
"//internal/grpc/dialer",
|
|
|
|
"//internal/grpc/testdialer",
|
|
|
|
"//internal/kms/uri",
|
|
|
|
"//internal/license",
|
|
|
|
"//internal/logger",
|
2023-07-25 08:20:25 -04:00
|
|
|
"//internal/semver",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/versions",
|
2023-03-24 06:51:18 -04:00
|
|
|
"//operators/constellation-node-operator/api/v1alpha1",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//verify/verifyproto",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
"@com_github_spf13_cobra//:cobra",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
2023-03-14 13:34:58 -04:00
|
|
|
"@io_k8s_api//core/v1:core",
|
2023-03-24 06:51:18 -04:00
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
|
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1/unstructured",
|
|
|
|
"@io_k8s_apimachinery//pkg/runtime",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@org_golang_google_grpc//:go_default_library",
|
|
|
|
"@org_golang_google_grpc//codes",
|
|
|
|
"@org_golang_google_grpc//status",
|
|
|
|
"@org_golang_x_mod//semver",
|
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
)
|