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 = [
|
2023-10-24 09:39:18 -04:00
|
|
|
"apply.go",
|
|
|
|
"applyhelm.go",
|
|
|
|
"applyinit.go",
|
|
|
|
"applyterraform.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"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",
|
2023-10-16 09:05:29 -04:00
|
|
|
"iam.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"iamcreate.go",
|
2023-10-16 09:05:29 -04:00
|
|
|
"iamcreateaws.go",
|
|
|
|
"iamcreateazure.go",
|
|
|
|
"iamcreategcp.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"iamdestroy.go",
|
2023-07-26 11:29:03 -04:00
|
|
|
"iamupgradeapply.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"init.go",
|
2023-12-01 02:37:52 -05:00
|
|
|
# keep
|
|
|
|
"license_enterprise.go",
|
|
|
|
"license_oss.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"log.go",
|
2023-11-13 12:46:20 -05:00
|
|
|
"maapatch.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",
|
|
|
|
"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 = [
|
|
|
|
"//cli/internal/cloudcmd",
|
2023-08-08 09:42:06 -04:00
|
|
|
"//cli/internal/cmd/pathprefix",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//cli/internal/libvirt",
|
|
|
|
"//cli/internal/terraform",
|
|
|
|
"//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",
|
2023-12-04 07:40:24 -05:00
|
|
|
"//internal/attestation/choose",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/attestation/measurements",
|
2023-10-30 07:39:15 -04:00
|
|
|
"//internal/attestation/snp",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-08-21 07:50:00 -04:00
|
|
|
"//internal/attestation/vtpm",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
"//internal/cloud/gcpshared",
|
|
|
|
"//internal/compatibility",
|
|
|
|
"//internal/config",
|
|
|
|
"//internal/config/instancetypes",
|
2023-08-04 09:57:36 -04:00
|
|
|
"//internal/config/migration",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/constants",
|
2023-12-01 02:37:52 -05:00
|
|
|
"//internal/constellation",
|
2023-12-08 10:27:04 -05:00
|
|
|
"//internal/constellation/featureset",
|
2023-12-06 04:01:39 -05:00
|
|
|
"//internal/constellation/helm",
|
2023-12-05 10:23:31 -05:00
|
|
|
"//internal/constellation/kubecmd",
|
2023-12-08 10:27:04 -05:00
|
|
|
"//internal/constellation/state",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/crypto",
|
|
|
|
"//internal/file",
|
|
|
|
"//internal/grpc/dialer",
|
|
|
|
"//internal/grpc/retry",
|
2023-12-05 10:23:31 -05:00
|
|
|
"//internal/imagefetcher",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/kms/uri",
|
2023-12-01 02:37:52 -05:00
|
|
|
# keep
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/license",
|
|
|
|
"//internal/logger",
|
2023-11-13 12:46:20 -05:00
|
|
|
"//internal/maa",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/retry",
|
2023-04-03 08:31:17 -04:00
|
|
|
"//internal/semver",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/sigstore",
|
2023-08-01 10:48:13 -04:00
|
|
|
"//internal/sigstore/keyselect",
|
2023-10-07 10:24:29 -04:00
|
|
|
"//internal/verify",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/versions",
|
|
|
|
"//verify/verifyproto",
|
2023-08-21 07:50:00 -04:00
|
|
|
"@com_github_google_go_tpm_tools//proto/tpm",
|
2023-07-26 11:29:03 -04:00
|
|
|
"@com_github_google_uuid//:uuid",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_mattn_go_isatty//:go-isatty",
|
2023-08-08 07:03:23 -04:00
|
|
|
"@com_github_rogpeppe_go_internal//diff",
|
2024-02-21 10:39:12 -05:00
|
|
|
"@com_github_samber_slog_multi//:slog-multi",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_siderolabs_talos_pkg_machinery//config/encoder",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
"@com_github_spf13_cobra//:cobra",
|
2023-10-16 09:05:29 -04:00
|
|
|
"@com_github_spf13_pflag//:pflag",
|
2023-07-07 11:02:01 -04:00
|
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
2023-08-24 10:40:47 -04:00
|
|
|
"@io_k8s_apiextensions_apiserver//pkg/apis/apiextensions/v1:apiextensions",
|
2023-10-24 09:39:18 -04:00
|
|
|
"@io_k8s_apimachinery//pkg/api/errors",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@io_k8s_apimachinery//pkg/runtime",
|
|
|
|
"@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",
|
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 = [
|
2023-10-24 09:39:18 -04:00
|
|
|
"apply_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"cloud_test.go",
|
|
|
|
"configfetchmeasurements_test.go",
|
|
|
|
"configgenerate_test.go",
|
|
|
|
"create_test.go",
|
|
|
|
"iamcreate_test.go",
|
|
|
|
"iamdestroy_test.go",
|
2023-09-14 05:51:20 -04:00
|
|
|
"iamupgradeapply_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"init_test.go",
|
2023-11-13 12:46:20 -05:00
|
|
|
"maapatch_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"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",
|
2023-08-08 09:42:06 -04:00
|
|
|
"//cli/internal/cmd/pathprefix",
|
2023-04-14 08:15:07 -04:00
|
|
|
"//cli/internal/terraform",
|
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",
|
2023-12-04 07:40:24 -05:00
|
|
|
"//internal/constellation",
|
2023-12-06 04:01:39 -05:00
|
|
|
"//internal/constellation/helm",
|
2023-12-05 10:23:31 -05:00
|
|
|
"//internal/constellation/kubecmd",
|
2023-12-08 10:27:04 -05:00
|
|
|
"//internal/constellation/state",
|
2023-10-09 07:04:29 -04:00
|
|
|
"//internal/crypto",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/crypto/testvector",
|
|
|
|
"//internal/file",
|
|
|
|
"//internal/grpc/atlscredentials",
|
|
|
|
"//internal/grpc/dialer",
|
|
|
|
"//internal/grpc/testdialer",
|
|
|
|
"//internal/kms/uri",
|
|
|
|
"//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",
|
2023-09-08 02:08:09 -04:00
|
|
|
"@com_github_google_go_tpm_tools//proto/tpm",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
"@com_github_spf13_cobra//:cobra",
|
2023-10-24 09:39:18 -04:00
|
|
|
"@com_github_spf13_pflag//:pflag",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_stretchr_testify//assert",
|
2023-09-08 08:55:07 -04:00
|
|
|
"@com_github_stretchr_testify//mock",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_stretchr_testify//require",
|
2023-03-14 13:34:58 -04:00
|
|
|
"@io_k8s_api//core/v1:core",
|
2023-08-24 10:40:47 -04:00
|
|
|
"@io_k8s_apiextensions_apiserver//pkg/apis/apiextensions/v1:apiextensions",
|
2023-10-24 09:39:18 -04:00
|
|
|
"@io_k8s_apimachinery//pkg/api/errors",
|
2023-03-24 06:51:18 -04:00
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
|
2023-10-24 09:39:18 -04:00
|
|
|
"@io_k8s_apimachinery//pkg/runtime/schema",
|
2023-09-29 08:01:40 -04:00
|
|
|
"@io_k8s_client_go//tools/clientcmd",
|
|
|
|
"@io_k8s_client_go//tools/clientcmd/api",
|
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",
|
|
|
|
],
|
|
|
|
)
|