k3s/vendor/k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/BUILD

56 lines
2.0 KiB
Python
Raw Normal View History

2019-01-12 04:58:27 +00:00
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"example_handler.go",
"example_plugin.go",
"plugin_watcher.go",
],
2019-08-30 18:33:25 +00:00
importpath = "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher",
2019-01-12 04:58:27 +00:00
visibility = ["//visibility:public"],
deps = [
2019-08-30 18:33:25 +00:00
"//pkg/kubelet/pluginmanager/cache:go_default_library",
"//pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1:go_default_library",
"//pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta2:go_default_library",
2019-09-27 21:51:53 +00:00
"//pkg/kubelet/util:go_default_library",
2019-01-12 04:58:27 +00:00
"//pkg/util/filesystem:go_default_library",
2019-12-12 01:27:03 +00:00
"//staging/src/k8s.io/kubelet/pkg/apis/pluginregistration/v1:go_default_library",
2019-01-12 04:58:27 +00:00
"//vendor/github.com/fsnotify/fsnotify:go_default_library",
"//vendor/golang.org/x/net/context:go_default_library",
"//vendor/google.golang.org/grpc:go_default_library",
"//vendor/k8s.io/klog:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = ["plugin_watcher_test.go"],
embed = [":go_default_library"],
deps = [
2019-08-30 18:33:25 +00:00
"//pkg/kubelet/pluginmanager/cache:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
2019-12-12 01:27:03 +00:00
"//staging/src/k8s.io/kubelet/pkg/apis/pluginregistration/v1:go_default_library",
2019-01-12 04:58:27 +00:00
"//vendor/github.com/stretchr/testify/require:go_default_library",
"//vendor/k8s.io/klog:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
2019-08-30 18:33:25 +00:00
"//pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1:all-srcs",
"//pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta2:all-srcs",
2019-01-12 04:58:27 +00:00
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)