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 = [
|
|
|
|
"controller.go",
|
|
|
|
"delta_fifo.go",
|
|
|
|
"doc.go",
|
|
|
|
"expiration_cache.go",
|
|
|
|
"expiration_cache_fakes.go",
|
|
|
|
"fake_custom_store.go",
|
|
|
|
"fifo.go",
|
|
|
|
"index.go",
|
|
|
|
"listers.go",
|
|
|
|
"listwatch.go",
|
|
|
|
"mutation_detector.go",
|
|
|
|
"reflector.go",
|
|
|
|
"shared_informer.go",
|
|
|
|
"store.go",
|
|
|
|
"thread_safe_store.go",
|
|
|
|
"undelta_store.go",
|
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/api:go_default_library",
|
|
|
|
"//vendor:github.com/golang/glog",
|
|
|
|
"//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/runtime/schema",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/util/diff",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/util/runtime",
|
|
|
|
"//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/rest",
|
|
|
|
"//vendor:k8s.io/client-go/util/clock",
|
2017-02-01 00:45:59 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"controller_test.go",
|
|
|
|
"delta_fifo_test.go",
|
|
|
|
"expiration_cache_test.go",
|
|
|
|
"fifo_test.go",
|
|
|
|
"index_test.go",
|
|
|
|
"mutation_detector_test.go",
|
|
|
|
"processor_listener_test.go",
|
|
|
|
"reflector_test.go",
|
|
|
|
"store_test.go",
|
|
|
|
"undelta_store_test.go",
|
|
|
|
],
|
|
|
|
library = ":go_default_library",
|
|
|
|
tags = ["automanaged"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/api:go_default_library",
|
|
|
|
"//pkg/api/v1:go_default_library",
|
|
|
|
"//pkg/client/testing/cache:go_default_library",
|
|
|
|
"//vendor:github.com/google/gofuzz",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
|
|
"//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",
|
2017-02-03 13:41:32 +00:00
|
|
|
"//vendor:k8s.io/client-go/util/clock",
|
2017-02-01 00:45:59 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [":package-srcs"],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
)
|
2017-02-03 13:41:32 +00:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_xtest",
|
|
|
|
srcs = ["listwatch_test.go"],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/api:go_default_library",
|
|
|
|
"//pkg/api/testapi:go_default_library",
|
|
|
|
"//pkg/api/v1:go_default_library",
|
|
|
|
"//pkg/client/cache:go_default_library",
|
|
|
|
"//pkg/client/clientset_generated/internalclientset:go_default_library",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/fields",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/watch",
|
|
|
|
"//vendor:k8s.io/client-go/rest",
|
|
|
|
"//vendor:k8s.io/client-go/util/testing",
|
|
|
|
],
|
|
|
|
)
|