mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
8e4feb7e2a
* add Azure Terraform module * add maa-patching command to cli * refactor release process * factor out image fetching to own action * add CI * generate * fix some unnecessary changes Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * use `constellation maa-patch` in ci * insecure flag when using debug image Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * only update maa url if existing Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * make node group zone optional on aws and gcp Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * [remove] register updated workflow Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * Revert "[remove] register updated workflow" This reverts commit e70b9515b7eabbcbe0d41fa1296c48750cd02ace. * create MAA Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * make maa-patching only run on azure Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * add comment Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * require node group zone for GCP and AWS * remove unnecessary bazel action * stamp version to correct file * refer to `maa-patch` command in docs * run Azure test in weekly e2e * comment / naming improvements * remove sa_account resource * disable spellcheck ot use "URL" * `create_maa` variable * don't write maa url to config Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * default to nightly image * use input ref and stream * fix command check * don't set region in weekly e2e call * patch maa if url is not empty Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * remove `create_maa` variable * remove binaries Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * remove undefined input * replace invalid attestation URL error message Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com> * fix punctuation Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com> * skip hidden commands in clidocgen Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * enable spellcheck before code block * move spellcheck trigger out of info block Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * fix workflow dependencies * let image default to CLI version --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>
201 lines
6.5 KiB
Python
201 lines
6.5 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "cmd",
|
|
srcs = [
|
|
"apply.go",
|
|
"applyhelm.go",
|
|
"applyinit.go",
|
|
"applyterraform.go",
|
|
"cloud.go",
|
|
"cmd.go",
|
|
"config.go",
|
|
"configfetchmeasurements.go",
|
|
"configgenerate.go",
|
|
"configinstancetypes.go",
|
|
"configkubernetesversions.go",
|
|
"configmigrate.go",
|
|
"create.go",
|
|
"iam.go",
|
|
"iamcreate.go",
|
|
"iamcreateaws.go",
|
|
"iamcreateazure.go",
|
|
"iamcreategcp.go",
|
|
"iamdestroy.go",
|
|
"iamupgradeapply.go",
|
|
"init.go",
|
|
"log.go",
|
|
"maapatch.go",
|
|
"mini.go",
|
|
"minidown.go",
|
|
"miniup.go",
|
|
"miniup_cross.go",
|
|
"miniup_linux_amd64.go",
|
|
"recover.go",
|
|
"spinner.go",
|
|
"status.go",
|
|
"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 = [
|
|
"//bootstrapper/initproto",
|
|
"//cli/internal/cloudcmd",
|
|
"//cli/internal/cmd/pathprefix",
|
|
"//cli/internal/featureset",
|
|
"//cli/internal/helm",
|
|
"//cli/internal/kubecmd",
|
|
"//cli/internal/libvirt",
|
|
"//cli/internal/state",
|
|
"//cli/internal/terraform",
|
|
"//disk-mapper/recoverproto",
|
|
"//internal/api/attestationconfigapi",
|
|
"//internal/api/fetcher",
|
|
"//internal/api/versionsapi",
|
|
"//internal/atls",
|
|
"//internal/attestation/measurements",
|
|
"//internal/attestation/variant",
|
|
"//internal/attestation/vtpm",
|
|
"//internal/cloud/cloudprovider",
|
|
"//internal/cloud/gcpshared",
|
|
"//internal/compatibility",
|
|
"//internal/config",
|
|
"//internal/config/instancetypes",
|
|
"//internal/config/migration",
|
|
"//internal/constants",
|
|
"//internal/crypto",
|
|
"//internal/file",
|
|
"//internal/grpc/dialer",
|
|
"//internal/grpc/grpclog",
|
|
"//internal/grpc/retry",
|
|
"//internal/kms/uri",
|
|
"//internal/license",
|
|
"//internal/logger",
|
|
"//internal/maa",
|
|
"//internal/retry",
|
|
"//internal/semver",
|
|
"//internal/sigstore",
|
|
"//internal/sigstore/keyselect",
|
|
"//internal/verify",
|
|
"//internal/versions",
|
|
"//verify/verifyproto",
|
|
"@com_github_golang_jwt_jwt_v5//:jwt",
|
|
"@com_github_google_go_sev_guest//abi",
|
|
"@com_github_google_go_sev_guest//kds",
|
|
"@com_github_google_go_tpm_tools//proto/tpm",
|
|
"@com_github_google_uuid//:uuid",
|
|
"@com_github_mattn_go_isatty//:go-isatty",
|
|
"@com_github_rogpeppe_go_internal//diff",
|
|
"@com_github_siderolabs_talos_pkg_machinery//config/encoder",
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_spf13_cobra//:cobra",
|
|
"@com_github_spf13_pflag//:pflag",
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
|
"@io_k8s_apiextensions_apiserver//pkg/apis/apiextensions/v1:apiextensions",
|
|
"@io_k8s_apimachinery//pkg/api/errors",
|
|
"@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",
|
|
"@org_uber_go_zap//zapcore",
|
|
] + 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": [],
|
|
}),
|
|
)
|
|
|
|
go_test(
|
|
name = "cmd_test",
|
|
srcs = [
|
|
"apply_test.go",
|
|
"cloud_test.go",
|
|
"configfetchmeasurements_test.go",
|
|
"configgenerate_test.go",
|
|
"create_test.go",
|
|
"iamcreate_test.go",
|
|
"iamdestroy_test.go",
|
|
"iamupgradeapply_test.go",
|
|
"init_test.go",
|
|
"maapatch_test.go",
|
|
"recover_test.go",
|
|
"spinner_test.go",
|
|
"status_test.go",
|
|
"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/cmd/pathprefix",
|
|
"//cli/internal/helm",
|
|
"//cli/internal/kubecmd",
|
|
"//cli/internal/state",
|
|
"//cli/internal/terraform",
|
|
"//disk-mapper/recoverproto",
|
|
"//internal/api/attestationconfigapi",
|
|
"//internal/api/versionsapi",
|
|
"//internal/atls",
|
|
"//internal/attestation/measurements",
|
|
"//internal/attestation/variant",
|
|
"//internal/cloud/cloudprovider",
|
|
"//internal/cloud/gcpshared",
|
|
"//internal/config",
|
|
"//internal/constants",
|
|
"//internal/crypto",
|
|
"//internal/crypto/testvector",
|
|
"//internal/file",
|
|
"//internal/grpc/atlscredentials",
|
|
"//internal/grpc/dialer",
|
|
"//internal/grpc/testdialer",
|
|
"//internal/kms/uri",
|
|
"//internal/license",
|
|
"//internal/logger",
|
|
"//internal/semver",
|
|
"//internal/sigstore",
|
|
"//internal/versions",
|
|
"//operators/constellation-node-operator/api/v1alpha1",
|
|
"//verify/verifyproto",
|
|
"@com_github_google_go_tpm_tools//proto/tpm",
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_spf13_cobra//:cobra",
|
|
"@com_github_spf13_pflag//:pflag",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//mock",
|
|
"@com_github_stretchr_testify//require",
|
|
"@io_k8s_api//core/v1:core",
|
|
"@io_k8s_apiextensions_apiserver//pkg/apis/apiextensions/v1:apiextensions",
|
|
"@io_k8s_apimachinery//pkg/api/errors",
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
|
|
"@io_k8s_apimachinery//pkg/runtime/schema",
|
|
"@io_k8s_client_go//tools/clientcmd",
|
|
"@io_k8s_client_go//tools/clientcmd/api",
|
|
"@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",
|
|
],
|
|
)
|