2019-09-27 21:51:53 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"endpointset.go",
|
|
|
|
"endpointslice_controller.go",
|
2020-02-14 00:18:16 +00:00
|
|
|
"endpointslice_tracker.go",
|
2019-09-27 21:51:53 +00:00
|
|
|
"reconciler.go",
|
|
|
|
"utils.go",
|
|
|
|
],
|
|
|
|
importpath = "k8s.io/kubernetes/pkg/controller/endpointslice",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/api/v1/pod:go_default_library",
|
|
|
|
"//pkg/apis/core:go_default_library",
|
2020-12-01 01:06:26 +00:00
|
|
|
"//pkg/apis/core/v1/helper:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//pkg/apis/discovery/validation:go_default_library",
|
|
|
|
"//pkg/controller:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//pkg/controller/endpointslice/metrics:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//pkg/controller/util/endpoint:go_default_library",
|
2020-12-01 01:06:26 +00:00
|
|
|
"//pkg/features:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//staging/src/k8s.io/api/discovery/v1beta1:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
2020-12-01 01:06:26 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
2020-12-01 01:06:26 +00:00
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/client-go/informers/core/v1:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//staging/src/k8s.io/client-go/informers/discovery/v1beta1:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/client-go/kubernetes:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/kubernetes/scheme:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/listers/core/v1:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//staging/src/k8s.io/client-go/listers/discovery/v1beta1:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/client-go/tools/cache:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/util/workqueue:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//staging/src/k8s.io/component-base/metrics/prometheus/ratelimiter:go_default_library",
|
2020-08-10 17:43:49 +00:00
|
|
|
"//vendor/golang.org/x/time/rate:go_default_library",
|
|
|
|
"//vendor/k8s.io/klog/v2:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"endpointslice_controller_test.go",
|
2020-02-14 00:18:16 +00:00
|
|
|
"endpointslice_tracker_test.go",
|
2019-09-27 21:51:53 +00:00
|
|
|
"reconciler_test.go",
|
|
|
|
"utils_test.go",
|
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/controller:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//pkg/controller/endpointslice/metrics:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//pkg/controller/util/endpoint:go_default_library",
|
2020-12-01 01:06:26 +00:00
|
|
|
"//pkg/features:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//staging/src/k8s.io/api/discovery/v1beta1:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
2020-08-10 17:43:49 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/rand:go_default_library",
|
2020-08-10 17:43:49 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
2020-12-01 01:06:26 +00:00
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/client-go/informers:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/listers/core/v1:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/testing:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/cache:go_default_library",
|
2020-12-01 01:06:26 +00:00
|
|
|
"//staging/src/k8s.io/component-base/featuregate/testing:go_default_library",
|
2020-03-26 21:07:15 +00:00
|
|
|
"//staging/src/k8s.io/component-base/metrics/testutil:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//vendor/github.com/stretchr/testify/assert:go_default_library",
|
|
|
|
"//vendor/k8s.io/utils/pointer:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [
|
|
|
|
":package-srcs",
|
|
|
|
"//pkg/controller/endpointslice/config:all-srcs",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//pkg/controller/endpointslice/metrics:all-srcs",
|
2019-09-27 21:51:53 +00:00
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|