ceph-csi/vendor/k8s.io/kubernetes/pkg/volume/util/BUILD

128 lines
4.5 KiB
Python
Raw Normal View History

2018-03-06 22:33:18 +00:00
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2018-01-09 18:57:14 +00:00
go_library(
name = "go_default_library",
srcs = [
"atomic_writer.go",
"device_util.go",
"doc.go",
"error.go",
"finalizer.go",
"io_util.go",
"metrics.go",
2018-03-06 22:33:18 +00:00
"nested_volumes.go",
"resize_util.go",
2018-01-09 18:57:14 +00:00
"util.go",
] + select({
2018-03-06 22:33:18 +00:00
"@io_bazel_rules_go//go/platform:android": [
"device_util_unsupported.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"device_util_unsupported.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"device_util_unsupported.go",
2018-01-09 18:57:14 +00:00
],
2018-03-06 22:33:18 +00:00
"@io_bazel_rules_go//go/platform:freebsd": [
"device_util_unsupported.go",
],
"@io_bazel_rules_go//go/platform:linux": [
2018-01-09 18:57:14 +00:00
"device_util_linux.go",
2018-03-06 22:33:18 +00:00
],
"@io_bazel_rules_go//go/platform:nacl": [
"device_util_unsupported.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"device_util_unsupported.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"device_util_unsupported.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"device_util_unsupported.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"device_util_unsupported.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"device_util_unsupported.go",
2018-01-09 18:57:14 +00:00
],
"//conditions:default": [],
}),
importpath = "k8s.io/kubernetes/pkg/volume/util",
2018-03-06 22:33:18 +00:00
visibility = ["//visibility:public"],
2018-01-09 18:57:14 +00:00
deps = [
"//pkg/api/legacyscheme:go_default_library",
"//pkg/apis/core/v1/helper:go_default_library",
2018-03-06 22:33:18 +00:00
"//pkg/features:go_default_library",
2018-01-09 18:57:14 +00:00
"//pkg/kubelet/apis:go_default_library",
"//pkg/util/mount:go_default_library",
2018-03-06 22:33:18 +00:00
"//pkg/volume:go_default_library",
"//pkg/volume/util/types:go_default_library",
2018-01-09 18:57:14 +00:00
"//vendor/github.com/golang/glog:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/api/storage/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/labels:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
2018-03-06 22:33:18 +00:00
"//vendor/k8s.io/apimachinery/pkg/util/strategicpatch:go_default_library",
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
2018-01-09 18:57:14 +00:00
"//vendor/k8s.io/client-go/kubernetes:go_default_library",
2018-03-06 22:33:18 +00:00
],
2018-01-09 18:57:14 +00:00
)
go_test(
name = "go_default_test",
srcs = [
2018-03-06 22:33:18 +00:00
"nested_volumes_test.go",
"resize_util_test.go",
2018-01-09 18:57:14 +00:00
"util_test.go",
] + select({
2018-03-06 22:33:18 +00:00
"@io_bazel_rules_go//go/platform:linux": [
2018-01-09 18:57:14 +00:00
"atomic_writer_test.go",
"device_util_linux_test.go",
],
"//conditions:default": [],
}),
2018-03-06 22:33:18 +00:00
embed = [":go_default_library"],
2018-01-09 18:57:14 +00:00
deps = [
"//pkg/apis/core/install:go_default_library",
"//pkg/apis/core/v1/helper:go_default_library",
2018-03-06 22:33:18 +00:00
"//pkg/util/mount:go_default_library",
"//pkg/util/slice:go_default_library",
"//pkg/volume:go_default_library",
2018-01-09 18:57:14 +00:00
"//vendor/k8s.io/api/core/v1:go_default_library",
2018-03-06 22:33:18 +00:00
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
2018-01-09 18:57:14 +00:00
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
2018-03-06 22:33:18 +00:00
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
2018-01-09 18:57:14 +00:00
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
2018-03-06 22:33:18 +00:00
"//vendor/k8s.io/client-go/util/testing:go_default_library",
],
2018-01-09 18:57:14 +00:00
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
2018-03-06 22:33:18 +00:00
"//pkg/volume/util/fs:all-srcs",
2018-01-09 18:57:14 +00:00
"//pkg/volume/util/nestedpendingoperations:all-srcs",
"//pkg/volume/util/operationexecutor:all-srcs",
2018-03-06 22:33:18 +00:00
"//pkg/volume/util/recyclerclient:all-srcs",
2018-01-09 18:57:14 +00:00
"//pkg/volume/util/types:all-srcs",
2018-03-06 22:33:18 +00:00
"//pkg/volume/util/volumepathhandler:all-srcs",
2018-01-09 18:57:14 +00:00
],
tags = ["automanaged"],
2018-03-06 22:33:18 +00:00
visibility = ["//visibility:public"],
2018-01-09 18:57:14 +00:00
)