mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 02:10:21 +00:00
123 lines
4.3 KiB
Python
123 lines
4.3 KiB
Python
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",
|
|
],
|
|
embed = [":go_default_library"],
|
|
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({
|
|
"@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": [
|
|
"threshold_notifier_linux.go",
|
|
],
|
|
"@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",
|
|
],
|
|
"//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",
|
|
"//pkg/scheduler/util:go_default_library",
|
|
"//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({
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"//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"],
|
|
)
|