mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Move prometheus visibility rules to build/visible_to
This commit is contained in:
parent
0c9245a29f
commit
62d010d6ac
@ -425,6 +425,20 @@ package_group(
|
||||
],
|
||||
)
|
||||
|
||||
package_group(
|
||||
name = "vendor_githubcom_prometheus_CONSUMERS",
|
||||
packages = [
|
||||
"//cluster/images/etcd-version-monitor",
|
||||
"//pkg/scheduler/framework/v1alpha1",
|
||||
"//pkg/volume/util/operationexecutor",
|
||||
"//staging/src/k8s.io/apiserver/pkg/admission/metrics",
|
||||
"//staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics",
|
||||
"//staging/src/k8s.io/component-base/metrics/...",
|
||||
"//test/e2e_node",
|
||||
"//vendor/...",
|
||||
],
|
||||
)
|
||||
|
||||
# Added by ./hack/verify-bazel.sh; should be excluded from
|
||||
# that script since it makes no sense here.
|
||||
filegroup(
|
||||
|
@ -93,7 +93,7 @@ fi
|
||||
|
||||
# restrict ./vendor/github.com/prometheus/* targets visibility
|
||||
# see comment above re: buildozer exit codes
|
||||
buildozer -quiet 'set visibility //staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list' '//vendor/github.com/prometheus/...:go_default_library' && ret=$? || ret=$?
|
||||
buildozer -quiet 'set visibility //build/visible_to:vendor_githubcom_prometheus_CONSUMERS' '//vendor/github.com/prometheus/...:go_default_library' && ret=$? || ret=$?
|
||||
if [[ $ret != 0 && $ret != 3 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
2
vendor/github.com/prometheus/client_golang/prometheus/BUILD
generated
vendored
2
vendor/github.com/prometheus/client_golang/prometheus/BUILD
generated
vendored
@ -30,7 +30,7 @@ go_library(
|
||||
],
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_golang/prometheus",
|
||||
importpath = "github.com/prometheus/client_golang/prometheus",
|
||||
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
|
||||
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
|
||||
deps = [
|
||||
"//vendor/github.com/beorn7/perks/quantile:go_default_library",
|
||||
"//vendor/github.com/golang/protobuf/proto:go_default_library",
|
||||
|
2
vendor/github.com/prometheus/client_golang/prometheus/internal/BUILD
generated
vendored
2
vendor/github.com/prometheus/client_golang/prometheus/internal/BUILD
generated
vendored
@ -5,7 +5,7 @@ go_library(
|
||||
srcs = ["metric.go"],
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_golang/prometheus/internal",
|
||||
importpath = "github.com/prometheus/client_golang/prometheus/internal",
|
||||
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
|
||||
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
|
||||
deps = ["//vendor/github.com/prometheus/client_model/go:go_default_library"],
|
||||
)
|
||||
|
||||
|
2
vendor/github.com/prometheus/client_golang/prometheus/promhttp/BUILD
generated
vendored
2
vendor/github.com/prometheus/client_golang/prometheus/promhttp/BUILD
generated
vendored
@ -10,7 +10,7 @@ go_library(
|
||||
],
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_golang/prometheus/promhttp",
|
||||
importpath = "github.com/prometheus/client_golang/prometheus/promhttp",
|
||||
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
|
||||
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
|
||||
deps = [
|
||||
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
|
||||
"//vendor/github.com/prometheus/client_model/go:go_default_library",
|
||||
|
2
vendor/github.com/prometheus/client_golang/prometheus/testutil/BUILD
generated
vendored
2
vendor/github.com/prometheus/client_golang/prometheus/testutil/BUILD
generated
vendored
@ -5,7 +5,7 @@ go_library(
|
||||
srcs = ["testutil.go"],
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_golang/prometheus/testutil",
|
||||
importpath = "github.com/prometheus/client_golang/prometheus/testutil",
|
||||
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
|
||||
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
|
||||
deps = [
|
||||
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
|
||||
"//vendor/github.com/prometheus/client_golang/prometheus/internal:go_default_library",
|
||||
|
2
vendor/github.com/prometheus/client_model/go/BUILD
generated
vendored
2
vendor/github.com/prometheus/client_model/go/BUILD
generated
vendored
@ -5,7 +5,7 @@ go_library(
|
||||
srcs = ["metrics.pb.go"],
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_model/go",
|
||||
importpath = "github.com/prometheus/client_model/go",
|
||||
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/golang/protobuf/ptypes/timestamp:go_default_library",
|
||||
|
2
vendor/github.com/prometheus/common/expfmt/BUILD
generated
vendored
2
vendor/github.com/prometheus/common/expfmt/BUILD
generated
vendored
@ -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",
|
||||
|
2
vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/BUILD
generated
vendored
2
vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/BUILD
generated
vendored
@ -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(
|
||||
|
2
vendor/github.com/prometheus/common/model/BUILD
generated
vendored
2
vendor/github.com/prometheus/common/model/BUILD
generated
vendored
@ -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(
|
||||
|
2
vendor/github.com/prometheus/procfs/BUILD
generated
vendored
2
vendor/github.com/prometheus/procfs/BUILD
generated
vendored
@ -33,7 +33,7 @@ go_library(
|
||||
],
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/procfs",
|
||||
importpath = "github.com/prometheus/procfs",
|
||||
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
|
||||
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
|
||||
deps = [
|
||||
"//vendor/github.com/prometheus/procfs/internal/fs:go_default_library",
|
||||
"//vendor/github.com/prometheus/procfs/internal/util:go_default_library",
|
||||
|
2
vendor/github.com/prometheus/procfs/internal/fs/BUILD
generated
vendored
2
vendor/github.com/prometheus/procfs/internal/fs/BUILD
generated
vendored
@ -5,7 +5,7 @@ go_library(
|
||||
srcs = ["fs.go"],
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/procfs/internal/fs",
|
||||
importpath = "github.com/prometheus/procfs/internal/fs",
|
||||
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
|
||||
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
|
2
vendor/github.com/prometheus/procfs/internal/util/BUILD
generated
vendored
2
vendor/github.com/prometheus/procfs/internal/util/BUILD
generated
vendored
@ -10,7 +10,7 @@ go_library(
|
||||
],
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/procfs/internal/util",
|
||||
importpath = "github.com/prometheus/procfs/internal/util",
|
||||
visibility = ["//staging/src/k8s.io/component-base/metrics:prometheus_import_allow_list"],
|
||||
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
|
Loading…
Reference in New Issue
Block a user