Skip to content

Commit

Permalink
Merge pull request #13038 from stevekuznetsov/skuznets/update-bazel
Browse files Browse the repository at this point in the history
Update bazel formatting? Question mark?
  • Loading branch information
k8s-ci-robot committed Jun 14, 2019
2 parents ba79d12 + eb9a1d6 commit 3b4958c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 25 deletions.
1 change: 1 addition & 0 deletions prow/BUILD.bazel
Expand Up @@ -130,6 +130,7 @@ filegroup(
"//prow/labels:all-srcs",
"//prow/logrusutil:all-srcs",
"//prow/metrics:all-srcs",
"//prow/monitoring:all-srcs",
"//prow/phony:all-srcs",
"//prow/pjutil:all-srcs",
"//prow/plank:all-srcs",
Expand Down
62 changes: 37 additions & 25 deletions prow/monitoring/BUILD.bazel
Expand Up @@ -9,11 +9,9 @@ release(
component("prometheus_operator_rbac", MULTI_KIND),
component("prometheus_operator", "deployment"),
component("prow_servicemonitors", MULTI_KIND),

component("prometheus_rbac", MULTI_KIND),
component("prow", "prometheus"),
component("prometheus_expose", MULTI_KIND),

component("grafana_rbac", MULTI_KIND),
component("grafana_expose", MULTI_KIND),
component("grafana_configmaps", MULTI_KIND),
Expand All @@ -23,41 +21,55 @@ release(
load("@io_bazel_rules_k8s//k8s:object.bzl", "k8s_object")

k8s_object(
name = "alertmanager_crd",
cluster = "{STABLE_PROW_CLUSTER}",
kind = None,
template = "@operator_framework_community_operators//:upstream-community-operators/prometheus/alertmanager.crd.yaml",
name = "alertmanager_crd",
cluster = "{STABLE_PROW_CLUSTER}",
kind = None,
template = "@operator_framework_community_operators//:upstream-community-operators/prometheus/alertmanager.crd.yaml",
)

k8s_object(
name = "prometheus_crd",
cluster = "{STABLE_PROW_CLUSTER}",
kind = None,
template = "@operator_framework_community_operators//:upstream-community-operators/prometheus/prometheus.crd.yaml",
name = "prometheus_crd",
cluster = "{STABLE_PROW_CLUSTER}",
kind = None,
template = "@operator_framework_community_operators//:upstream-community-operators/prometheus/prometheus.crd.yaml",
)

k8s_object(
name = "prometheusrule_crd",
cluster = "{STABLE_PROW_CLUSTER}",
kind = None,
template = "@operator_framework_community_operators//:upstream-community-operators/prometheus/prometheusrule.crd.yaml",
name = "prometheusrule_crd",
cluster = "{STABLE_PROW_CLUSTER}",
kind = None,
template = "@operator_framework_community_operators//:upstream-community-operators/prometheus/prometheusrule.crd.yaml",
)

k8s_object(
name = "servicemonitor_crd",
cluster = "{STABLE_PROW_CLUSTER}",
kind = None,
template = "@operator_framework_community_operators//:upstream-community-operators/prometheus/servicemonitor.crd.yaml",
name = "servicemonitor_crd",
cluster = "{STABLE_PROW_CLUSTER}",
kind = None,
template = "@operator_framework_community_operators//:upstream-community-operators/prometheus/servicemonitor.crd.yaml",
)

load("@io_bazel_rules_k8s//k8s:objects.bzl", "k8s_objects")

k8s_objects(
name = "prometheus_operator_crd",
objects = [
":alertmanager_crd",
":prometheus_crd",
":prometheusrule_crd",
":servicemonitor_crd",
]
name = "prometheus_operator_crd",
objects = [
":alertmanager_crd",
":prometheus_crd",
":prometheusrule_crd",
":servicemonitor_crd",
],
)

filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)

filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

0 comments on commit 3b4958c

Please sign in to comment.