Move prometheus visibility rules to build/visible_to

This commit is contained in:
Marek Siarkowicz
2020-04-09 20:18:26 +02:00
parent 0c9245a29f
commit 62d010d6ac
13 changed files with 26 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ go_library(
],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/common/expfmt",
importpath = "github.com/prometheus/common/expfmt",
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
deps = [
"//vendor/github.com/golang/protobuf/proto:go_default_library",
"//vendor/github.com/matttproud/golang_protobuf_extensions/pbutil:go_default_library",

View File

@@ -5,7 +5,7 @@ go_library(
srcs = ["autoneg.go"],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg",
importpath = "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg",
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
)
filegroup(

View File

@@ -17,7 +17,7 @@ go_library(
],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/common/model",
importpath = "github.com/prometheus/common/model",
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
)
filegroup(