ceph-csi/vendor/k8s.io/kubernetes/pkg/kubelet/eviction/BUILD

96 lines
3.5 KiB
Python
Raw Normal View History

2018-01-09 18:57:14 +00:00
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_test",
)
go_test(
name = "go_default_test",
srcs = [
"eviction_manager_test.go",
"helpers_test.go",
2018-11-26 18:23:56 +00:00
"main_test.go",
2018-07-18 14:47:22 +00:00
"memory_threshold_notifier_test.go",
"mock_threshold_notifier_test.go",
2018-01-09 18:57:14 +00:00
],
2018-03-06 22:33:18 +00:00
embed = [":go_default_library"],
2018-01-09 18:57:14 +00:00
deps = [
"//pkg/apis/core:go_default_library",
"//pkg/features:go_default_library",
"//pkg/kubelet/apis/stats/v1alpha1:go_default_library",
"//pkg/kubelet/eviction/api:go_default_library",
"//pkg/kubelet/lifecycle:go_default_library",
"//pkg/kubelet/types:go_default_library",
2018-11-26 18:23:56 +00:00
"//staging/src/k8s.io/api/core/v1:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/util/clock:go_default_library",
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
"//staging/src/k8s.io/apiserver/pkg/util/feature/testing:go_default_library",
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
2018-07-18 14:47:22 +00:00
"//vendor/github.com/stretchr/testify/mock:go_default_library",
2018-01-09 18:57:14 +00:00
],
)
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"eviction_manager.go",
"helpers.go",
2018-07-18 14:47:22 +00:00
"memory_threshold_notifier.go",
2018-11-26 18:23:56 +00:00
"threshold_notifier_linux.go",
"threshold_notifier_unsupported.go",
2018-01-09 18:57:14 +00:00
"types.go",
2018-11-26 18:23:56 +00:00
],
2018-01-09 18:57:14 +00:00
importpath = "k8s.io/kubernetes/pkg/kubelet/eviction",
deps = [
"//pkg/api/v1/resource:go_default_library",
2018-07-18 14:47:22 +00:00
"//pkg/apis/core/v1/helper:go_default_library",
2018-01-09 18:57:14 +00:00
"//pkg/apis/core/v1/helper/qos:go_default_library",
"//pkg/features:go_default_library",
"//pkg/kubelet/apis/stats/v1alpha1:go_default_library",
"//pkg/kubelet/cm:go_default_library",
"//pkg/kubelet/eviction/api:go_default_library",
"//pkg/kubelet/lifecycle:go_default_library",
"//pkg/kubelet/metrics:go_default_library",
"//pkg/kubelet/pod:go_default_library",
"//pkg/kubelet/server/stats:go_default_library",
"//pkg/kubelet/types:go_default_library",
"//pkg/kubelet/util/format:go_default_library",
2018-11-26 18:23:56 +00:00
"//pkg/scheduler/api:go_default_library",
2018-03-06 22:33:18 +00:00
"//pkg/scheduler/util:go_default_library",
2018-11-26 18:23:56 +00:00
"//staging/src/k8s.io/api/core/v1:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/util/clock:go_default_library",
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
"//vendor/k8s.io/klog:go_default_library",
2018-01-09 18:57:14 +00:00
] + select({
2018-03-06 22:33:18 +00:00
"@io_bazel_rules_go//go/platform:linux": [
2018-01-09 18:57:14 +00:00
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//pkg/kubelet/eviction/api:all-srcs",
],
tags = ["automanaged"],
)