forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
load.bzl
101 lines (91 loc) · 4.37 KB
/
load.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Copyright 2019 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
def repositories():
if not native.existing_rule("io_k8s_repo_infra"):
http_archive(
name = "io_k8s_repo_infra",
sha256 = "ae75a3a8de9698df30dd5a177c61f31ae9dd3a5da96ec951f0d6e60b2672d5fe",
strip_prefix = "repo-infra-0.2.2",
urls = [
"https://github.com/kubernetes/repo-infra/archive/v0.2.2.tar.gz",
],
)
http_archive(
name = "io_bazel_rules_go",
sha256 = "69de5c704a05ff37862f7e0f5534d4f479418afc21806c887db544a316f3cb6b",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
],
)
http_archive(
name = "io_bazel_rules_docker",
sha256 = "4521794f0fba2e20f3bf15846ab5e01d5332e587e9ce81629c7f96c793bb7036",
strip_prefix = "rules_docker-0.14.4",
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.14.4/rules_docker-v0.14.4.tar.gz"],
)
http_archive(
name = "io_bazel_rules_k8s",
strip_prefix = "rules_k8s-0.6",
urls = ["https://github.com/bazelbuild/rules_k8s/archive/v0.6.tar.gz"],
sha256 = "51f0977294699cd547e139ceff2396c32588575588678d2054da167691a227ef",
)
# https://github.com/bazelbuild/rules_nodejs
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "dd4dc46066e2ce034cba0c81aa3e862b27e8e8d95871f567359f7a534cccb666",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.1.0/rules_nodejs-3.1.0.tar.gz"],
)
# Python setup
# pip_import() calls must live in WORKSPACE, otherwise we get a load() after non-load() error
git_repository(
name = "rules_python",
commit = "94677401bc56ed5d756f50b441a6a5c7f735a6d4",
remote = "https://github.com/bazelbuild/rules_python.git",
shallow_since = "1573842889 -0500",
)
# TODO(fejta): get this to work
git_repository(
name = "io_bazel_rules_appengine",
commit = "fdbce051adecbb369b15260046f4f23684369efc",
remote = "https://github.com/bazelbuild/rules_appengine.git",
shallow_since = "1552415147 -0400",
#tag = "0.0.8+but-this-isn't-new-enough", # Latest at https://github.com/bazelbuild/rules_appengine/releases.
)
new_git_repository(
name = "com_github_prometheus_operator",
build_file_content = """
exports_files([
"example/prometheus-operator-crd/monitoring.coreos.com_alertmanagerconfigs.yaml",
"example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml",
"example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml",
"example/prometheus-operator-crd/monitoring.coreos.com_probes.yaml",
"example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml",
"example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml",
"example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml",
"example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml",
])
""",
commit = "5555f492df250168657b72bb8cb60bec071de71f", # Latest of release-0.45 branch
remote = "https://github.com/prometheus-operator/prometheus-operator.git",
shallow_since = "1610438400 +0200",
)
http_archive(
name = "io_bazel_rules_jsonnet",
sha256 = "68b5bcb0779599065da1056fc8df60d970cffe8e6832caf13819bb4d6e832459",
strip_prefix = "rules_jsonnet-0.2.0",
urls = ["https://github.com/bazelbuild/rules_jsonnet/archive/0.2.0.tar.gz"],
)