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 = "controlplane",
|
|
|
|
srcs = ["controlplane.go"],
|
2024-01-08 07:19:38 -05:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/operators/constellation-node-operator/internal/controlplane",
|
2023-03-09 09:23:42 -05:00
|
|
|
visibility = ["//operators/constellation-node-operator:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//operators/constellation-node-operator/internal/node",
|
|
|
|
"@io_k8s_api//core/v1:core",
|
|
|
|
"@io_k8s_sigs_controller_runtime//pkg/client",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "controlplane_test",
|
|
|
|
srcs = ["controlplane_test.go"],
|
|
|
|
embed = [":controlplane"],
|
|
|
|
deps = [
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@io_k8s_api//core/v1:core",
|
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
|
|
|
|
"@io_k8s_sigs_controller_runtime//pkg/client",
|
|
|
|
],
|
|
|
|
)
|