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 = [
|
|
|
|
"doc.go",
|
|
|
|
"metrics_cached.go",
|
|
|
|
"metrics_du.go",
|
|
|
|
"metrics_errors.go",
|
|
|
|
"metrics_nil.go",
|
|
|
|
"metrics_statfs.go",
|
|
|
|
"noop_expandable_plugin.go",
|
|
|
|
"plugins.go",
|
|
|
|
"volume.go",
|
|
|
|
"volume_linux.go",
|
|
|
|
"volume_unsupported.go",
|
|
|
|
],
|
|
|
|
importpath = "k8s.io/kubernetes/pkg/volume",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/volume/util/fs:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//pkg/volume/util/hostutil:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/volume/util/recyclerclient:go_default_library",
|
2019-04-07 17:07:55 +00:00
|
|
|
"//pkg/volume/util/subpath:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/api/authentication/v1:go_default_library",
|
|
|
|
"//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/errors:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/validation:go_default_library",
|
2019-07-14 07:58:54 +00:00
|
|
|
"//staging/src/k8s.io/client-go/informers:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/client-go/kubernetes:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//staging/src/k8s.io/client-go/listers/storage/v1:go_default_library",
|
2019-07-14 07:58:54 +00:00
|
|
|
"//staging/src/k8s.io/client-go/tools/cache:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
|
|
|
"//staging/src/k8s.io/cloud-provider:go_default_library",
|
2020-08-10 17:43:49 +00:00
|
|
|
"//vendor/k8s.io/klog/v2:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/exec:go_default_library",
|
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2020-03-26 21:07:15 +00:00
|
|
|
] + select({
|
|
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
|
|
"//pkg/features:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
|
|
"//pkg/features:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2019-01-12 04:58:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"metrics_du_test.go",
|
|
|
|
"metrics_nil_test.go",
|
|
|
|
"metrics_statfs_test.go",
|
|
|
|
"plugins_test.go",
|
2020-03-26 21:07:15 +00:00
|
|
|
"volume_linux_test.go",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/volume/testing:go_default_library",
|
|
|
|
"//staging/src/k8s.io/api/core/v1: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/client-go/util/testing:go_default_library",
|
|
|
|
] + select({
|
2019-12-12 01:27:03 +00:00
|
|
|
"@io_bazel_rules_go//go/platform:android": [
|
2020-03-26 21:07:15 +00:00
|
|
|
"//pkg/features:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
|
|
"//staging/src/k8s.io/component-base/featuregate/testing:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
|
|
|
],
|
2019-01-12 04:58:27 +00:00
|
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
2020-03-26 21:07:15 +00:00
|
|
|
"//pkg/features:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
|
|
"//staging/src/k8s.io/component-base/featuregate/testing:go_default_library",
|
2019-01-12 04:58:27 +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/volume/awsebs:all-srcs",
|
|
|
|
"//pkg/volume/azure_dd:all-srcs",
|
|
|
|
"//pkg/volume/azure_file:all-srcs",
|
|
|
|
"//pkg/volume/cephfs:all-srcs",
|
|
|
|
"//pkg/volume/cinder:all-srcs",
|
|
|
|
"//pkg/volume/configmap:all-srcs",
|
|
|
|
"//pkg/volume/csi:all-srcs",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//pkg/volume/csimigration:all-srcs",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/volume/downwardapi:all-srcs",
|
|
|
|
"//pkg/volume/emptydir:all-srcs",
|
|
|
|
"//pkg/volume/fc:all-srcs",
|
|
|
|
"//pkg/volume/flexvolume:all-srcs",
|
|
|
|
"//pkg/volume/flocker:all-srcs",
|
|
|
|
"//pkg/volume/gcepd:all-srcs",
|
|
|
|
"//pkg/volume/git_repo:all-srcs",
|
|
|
|
"//pkg/volume/glusterfs:all-srcs",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//pkg/volume/hostpath:all-srcs",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/volume/iscsi:all-srcs",
|
|
|
|
"//pkg/volume/local:all-srcs",
|
|
|
|
"//pkg/volume/nfs:all-srcs",
|
|
|
|
"//pkg/volume/portworx:all-srcs",
|
|
|
|
"//pkg/volume/projected:all-srcs",
|
|
|
|
"//pkg/volume/quobyte:all-srcs",
|
|
|
|
"//pkg/volume/rbd:all-srcs",
|
|
|
|
"//pkg/volume/scaleio:all-srcs",
|
|
|
|
"//pkg/volume/secret:all-srcs",
|
|
|
|
"//pkg/volume/storageos:all-srcs",
|
|
|
|
"//pkg/volume/testing:all-srcs",
|
|
|
|
"//pkg/volume/util:all-srcs",
|
|
|
|
"//pkg/volume/validation:all-srcs",
|
|
|
|
"//pkg/volume/vsphere_volume:all-srcs",
|
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|