2023-03-30 10:13:14 -04:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
2023-08-21 10:15:32 -04:00
|
|
|
name = "kubecmd",
|
2023-03-30 10:13:14 -04:00
|
|
|
srcs = [
|
2023-08-24 10:40:47 -04:00
|
|
|
"backup.go",
|
2023-08-21 10:15:32 -04:00
|
|
|
"kubecmd.go",
|
2023-03-30 10:13:14 -04:00
|
|
|
"status.go",
|
|
|
|
],
|
2023-11-22 08:52:56 -05:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/kubecmd",
|
2023-03-30 10:13:14 -04:00
|
|
|
visibility = ["//cli:__subpackages__"],
|
|
|
|
deps = [
|
2023-06-07 10:16:32 -04:00
|
|
|
"//internal/api/versionsapi",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-05-23 03:17:27 -04:00
|
|
|
"//internal/cloud/cloudprovider",
|
2023-03-30 10:13:14 -04:00
|
|
|
"//internal/compatibility",
|
|
|
|
"//internal/config",
|
|
|
|
"//internal/constants",
|
2023-08-24 10:40:47 -04:00
|
|
|
"//internal/file",
|
2023-05-23 03:17:27 -04:00
|
|
|
"//internal/imagefetcher",
|
2023-03-30 10:13:14 -04:00
|
|
|
"//internal/kubernetes",
|
2023-08-21 10:15:32 -04:00
|
|
|
"//internal/kubernetes/kubectl",
|
2023-08-29 05:40:44 -04:00
|
|
|
"//internal/retry",
|
2023-03-30 10:13:14 -04:00
|
|
|
"//internal/versions",
|
|
|
|
"//internal/versions/components",
|
|
|
|
"//operators/constellation-node-operator/api/v1alpha1",
|
|
|
|
"@io_k8s_api//core/v1:core",
|
2023-08-24 10:40:47 -04:00
|
|
|
"@io_k8s_apiextensions_apiserver//pkg/apis/apiextensions/v1:apiextensions",
|
2023-03-30 10:13:14 -04:00
|
|
|
"@io_k8s_apimachinery//pkg/api/errors",
|
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
|
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1/unstructured",
|
|
|
|
"@io_k8s_apimachinery//pkg/runtime",
|
|
|
|
"@io_k8s_apimachinery//pkg/runtime/schema",
|
2023-07-24 06:15:11 -04:00
|
|
|
"@io_k8s_client_go//util/retry",
|
2023-07-21 10:43:51 -04:00
|
|
|
"@io_k8s_kubernetes//cmd/kubeadm/app/apis/kubeadm/v1beta3",
|
|
|
|
"@io_k8s_sigs_yaml//:yaml",
|
2023-03-30 10:13:14 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
2023-08-21 10:15:32 -04:00
|
|
|
name = "kubecmd_test",
|
2023-08-24 10:40:47 -04:00
|
|
|
srcs = [
|
|
|
|
"backup_test.go",
|
|
|
|
"kubecmd_test.go",
|
|
|
|
],
|
2023-08-21 10:15:32 -04:00
|
|
|
embed = [":kubecmd"],
|
2023-03-30 10:13:14 -04:00
|
|
|
deps = [
|
2023-08-23 02:14:39 -04:00
|
|
|
"//internal/attestation/measurements",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-05-23 03:17:27 -04:00
|
|
|
"//internal/cloud/cloudprovider",
|
2023-03-30 10:13:14 -04:00
|
|
|
"//internal/compatibility",
|
|
|
|
"//internal/config",
|
|
|
|
"//internal/constants",
|
2023-08-24 10:40:47 -04:00
|
|
|
"//internal/file",
|
2023-03-30 10:13:14 -04:00
|
|
|
"//internal/logger",
|
|
|
|
"//internal/versions",
|
|
|
|
"//internal/versions/components",
|
|
|
|
"//operators/constellation-node-operator/api/v1alpha1",
|
2023-08-24 10:40:47 -04:00
|
|
|
"@com_github_pkg_errors//:errors",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
2023-03-30 10:13:14 -04:00
|
|
|
"@com_github_stretchr_testify//assert",
|
2023-07-24 06:15:11 -04:00
|
|
|
"@com_github_stretchr_testify//mock",
|
2023-03-30 10:13:14 -04:00
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@io_k8s_api//core/v1:core",
|
2023-08-24 10:40:47 -04:00
|
|
|
"@io_k8s_apiextensions_apiserver//pkg/apis/apiextensions/v1:apiextensions",
|
2023-07-24 06:15:11 -04:00
|
|
|
"@io_k8s_apimachinery//pkg/api/errors",
|
2023-03-30 10:13:14 -04:00
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
|
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1/unstructured",
|
|
|
|
"@io_k8s_apimachinery//pkg/runtime",
|
2023-07-24 06:15:11 -04:00
|
|
|
"@io_k8s_apimachinery//pkg/runtime/schema",
|
2023-11-24 06:28:37 -05:00
|
|
|
"@io_k8s_kubernetes//cmd/kubeadm/app/apis/kubeadm/v1beta3",
|
2023-08-24 10:40:47 -04:00
|
|
|
"@io_k8s_sigs_yaml//:yaml",
|
2023-03-30 10:13:14 -04:00
|
|
|
],
|
|
|
|
)
|