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-21 10:15:32 -04:00
|
|
|
"kubecmd.go",
|
2023-03-30 10:13:14 -04:00
|
|
|
"status.go",
|
|
|
|
],
|
2023-08-21 10:15:32 -04:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/cli/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-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-03-30 10:13:14 -04:00
|
|
|
"//internal/versions",
|
|
|
|
"//internal/versions/components",
|
|
|
|
"//operators/constellation-node-operator/api/v1alpha1",
|
|
|
|
"@io_k8s_api//core/v1:core",
|
|
|
|
"@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",
|
|
|
|
srcs = ["kubecmd_test.go"],
|
|
|
|
embed = [":kubecmd"],
|
2023-03-30 10:13:14 -04:00
|
|
|
deps = [
|
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",
|
|
|
|
"//internal/logger",
|
|
|
|
"//internal/versions",
|
|
|
|
"//internal/versions/components",
|
|
|
|
"//operators/constellation-node-operator/api/v1alpha1",
|
|
|
|
"@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-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-03-30 10:13:14 -04:00
|
|
|
],
|
|
|
|
)
|