k3s/vendor/k8s.io/component-base/metrics/BUILD

76 lines
2.4 KiB
Python
Raw Normal View History

2019-08-30 18:33:25 +00:00
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_test",
)
2019-09-27 21:51:53 +00:00
load("//staging/src/k8s.io/component-base/version:def.bzl", "version_x_defs")
2019-08-30 18:33:25 +00:00
go_library(
name = "go_default_library",
srcs = [
"counter.go",
"gauge.go",
"histogram.go",
"metric.go",
"opts.go",
"processstarttime.go",
"registry.go",
"summary.go",
2019-09-27 21:51:53 +00:00
"version.go",
2019-08-30 18:33:25 +00:00
"version_parser.go",
"wrappers.go",
],
importmap = "k8s.io/kubernetes/vendor/k8s.io/component-base/metrics",
importpath = "k8s.io/component-base/metrics",
deps = [
"//staging/src/k8s.io/apimachinery/pkg/version:go_default_library",
2019-09-27 21:51:53 +00:00
"//staging/src/k8s.io/component-base/version:go_default_library",
2019-08-30 18:33:25 +00:00
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/client_model/go:go_default_library",
"//vendor/github.com/prometheus/procfs:go_default_library",
"//vendor/k8s.io/klog:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = [
"counter_test.go",
"gauge_test.go",
"histogram_test.go",
"registry_test.go",
"summary_test.go",
"version_parser_test.go",
],
embed = [":go_default_library"],
deps = [
"//staging/src/k8s.io/apimachinery/pkg/version:go_default_library",
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//staging/src/k8s.io/component-base/metrics/legacyregistry:all-srcs",
2019-09-27 21:51:53 +00:00
"//staging/src/k8s.io/component-base/metrics/prometheus/clientgo:all-srcs",
"//staging/src/k8s.io/component-base/metrics/prometheus/restclient:all-srcs",
"//staging/src/k8s.io/component-base/metrics/prometheus/workqueue:all-srcs",
2019-08-30 18:33:25 +00:00
],
tags = ["automanaged"],
)