forked from hswaw/hscloud
35 lines
858 B
Python
35 lines
858 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "kubenat",
|
|
srcs = [
|
|
"kubenat.go",
|
|
"pods.go",
|
|
"translation.go",
|
|
],
|
|
importpath = "code.hackerspace.pl/hscloud/cluster/identd/kubenat",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//cluster/identd/cri",
|
|
"@com_github_cenkalti_backoff//:backoff",
|
|
"@com_github_golang_glog//:glog",
|
|
"@org_golang_google_grpc//:go_default_library",
|
|
"@org_golang_google_grpc//codes",
|
|
"@org_golang_google_grpc//status",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "kubenat_test",
|
|
srcs = [
|
|
"kubenat_test.go",
|
|
"pods_test.go",
|
|
"translation_test.go",
|
|
],
|
|
embed = [":kubenat"],
|
|
deps = [
|
|
"@com_github_go_test_deep//:deep",
|
|
"@com_github_golang_glog//:glog",
|
|
],
|
|
)
|