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

123 lines
4.3 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-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",
"//pkg/quota:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/clock:go_default_library",
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
"//vendor/k8s.io/client-go/tools/record:go_default_library",
],
)
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"eviction_manager.go",
"helpers.go",
"types.go",
] + select({
2018-03-06 22:33:18 +00:00
"@io_bazel_rules_go//go/platform:android": [
"threshold_notifier_unsupported.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"threshold_notifier_unsupported.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"threshold_notifier_unsupported.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"threshold_notifier_unsupported.go",
],
"@io_bazel_rules_go//go/platform:linux": [
2018-01-09 18:57:14 +00:00
"threshold_notifier_linux.go",
],
2018-03-06 22:33:18 +00:00
"@io_bazel_rules_go//go/platform:nacl": [
"threshold_notifier_unsupported.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"threshold_notifier_unsupported.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"threshold_notifier_unsupported.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"threshold_notifier_unsupported.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"threshold_notifier_unsupported.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"threshold_notifier_unsupported.go",
],
2018-01-09 18:57:14 +00:00
"//conditions:default": [],
}),
importpath = "k8s.io/kubernetes/pkg/kubelet/eviction",
deps = [
"//pkg/api/v1/resource:go_default_library",
"//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-03-06 22:33:18 +00:00
"//pkg/scheduler/util:go_default_library",
2018-01-09 18:57:14 +00:00
"//vendor/github.com/golang/glog:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/clock:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library",
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
"//vendor/k8s.io/client-go/tools/record:go_default_library",
] + 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"],
)