1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
load("//build:build.bzl", "go_custom_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "agent",
srcs = [
"factory.go",
"server.go",
],
importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/kubernetes_api/agent",
visibility = ["//:__subpackages__"],
deps = [
"//internal/module/kubernetes_api",
"//internal/module/kubernetes_api/rpc",
"//internal/module/modagent",
"//internal/module/modshared",
"//internal/tool/grpctool",
"//internal/tool/httpz",
"//internal/tool/prototool",
"//internal/tool/tlstool",
"@io_k8s_apimachinery//pkg/runtime/schema",
"@io_k8s_client_go//rest",
"@io_k8s_client_go//transport",
],
)
go_custom_test(
name = "agent_test",
srcs = ["server_test.go"],
embed = [":agent"],
deps = [
"//internal/module/kubernetes_api/rpc",
"//internal/module/modagent",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@io_k8s_client_go//rest",
"@io_k8s_client_go//transport",
"@io_k8s_kubectl//pkg/cmd/testing",
],
)
|