2017-02-01 00:45:59 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
licenses(["notice"])
|
|
|
|
|
|
|
|
load(
|
|
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
|
|
"go_library",
|
|
|
|
"go_test",
|
|
|
|
)
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"cacher.go",
|
|
|
|
"doc.go",
|
|
|
|
"errors.go",
|
|
|
|
"interfaces.go",
|
|
|
|
"selection_predicate.go",
|
|
|
|
"time_budget.go",
|
|
|
|
"util.go",
|
|
|
|
"watch_cache.go",
|
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/api:go_default_library",
|
|
|
|
"//pkg/api/validation/path:go_default_library",
|
|
|
|
"//pkg/client/cache:go_default_library",
|
|
|
|
"//pkg/util:go_default_library",
|
|
|
|
"//vendor:github.com/golang/glog",
|
|
|
|
"//vendor:golang.org/x/net/context",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/api/errors",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/api/meta",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/conversion",
|
2017-02-03 13:41:32 +00:00
|
|
|
"//vendor:k8s.io/apimachinery/pkg/fields",
|
2017-02-01 00:45:59 +00:00
|
|
|
"//vendor:k8s.io/apimachinery/pkg/labels",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/types",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/util/runtime",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/util/validation/field",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/util/wait",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/watch",
|
2017-02-03 13:41:32 +00:00
|
|
|
"//vendor:k8s.io/client-go/util/clock",
|
2017-02-01 00:45:59 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"cacher_whitebox_test.go",
|
|
|
|
"selection_predicate_test.go",
|
|
|
|
"time_budget_test.go",
|
|
|
|
"util_test.go",
|
|
|
|
"watch_cache_test.go",
|
|
|
|
],
|
|
|
|
library = ":go_default_library",
|
|
|
|
tags = ["automanaged"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/api:go_default_library",
|
|
|
|
"//pkg/client/cache:go_default_library",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/api/errors",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
2017-02-03 13:41:32 +00:00
|
|
|
"//vendor:k8s.io/apimachinery/pkg/fields",
|
2017-02-01 00:45:59 +00:00
|
|
|
"//vendor:k8s.io/apimachinery/pkg/labels",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/util/sets",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/util/wait",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/watch",
|
2017-02-03 13:41:32 +00:00
|
|
|
"//vendor:k8s.io/client-go/util/clock",
|
2017-02-01 00:45:59 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_xtest",
|
|
|
|
srcs = ["cacher_test.go"],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/api:go_default_library",
|
|
|
|
"//pkg/api/testapi:go_default_library",
|
|
|
|
"//pkg/api/testing:go_default_library",
|
|
|
|
"//pkg/registry/core/pod:go_default_library",
|
|
|
|
"//pkg/storage:go_default_library",
|
|
|
|
"//pkg/storage/etcd:go_default_library",
|
|
|
|
"//pkg/storage/etcd/etcdtest:go_default_library",
|
|
|
|
"//pkg/storage/etcd/testing:go_default_library",
|
|
|
|
"//pkg/storage/etcd3:go_default_library",
|
|
|
|
"//vendor:golang.org/x/net/context",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/api/errors",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/api/meta",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
2017-02-03 13:41:32 +00:00
|
|
|
"//vendor:k8s.io/apimachinery/pkg/fields",
|
2017-02-01 00:45:59 +00:00
|
|
|
"//vendor:k8s.io/apimachinery/pkg/labels",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/util/sets",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/util/wait",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/watch",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [
|
|
|
|
":package-srcs",
|
|
|
|
"//pkg/storage/etcd:all-srcs",
|
|
|
|
"//pkg/storage/etcd3:all-srcs",
|
|
|
|
"//pkg/storage/storagebackend:all-srcs",
|
|
|
|
"//pkg/storage/testing:all-srcs",
|
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
)
|