-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWORKSPACE
147 lines (118 loc) · 3.96 KB
/
WORKSPACE
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
## Docker rules
# https://github.com/bazelbuild/rules_docker
git_repository(
name = "io_bazel_rules_docker",
remote = "https://github.com/bazelbuild/rules_docker.git",
# Head as of 12/15/2018
commit = "f6664b6b5c7f4fac031883a7ec9fa6b8bab0ab98",
)
load(
"@io_bazel_rules_docker//container:container.bzl",
"container_pull",
container_repositories = "repositories",
)
## Go rules
# https://github.com/bazelbuild/rules_go#generating-build-files
http_archive(
name = "io_bazel_rules_go",
urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.16.5/rules_go-0.16.5.tar.gz"],
sha256 = "7be7dc01f1e0afdba6c8eb2b43d2fa01c743be1b9273ab1eaf6c233df078d705",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
load(
"@io_bazel_rules_docker//go:image.bzl",
_go_image_repos = "repositories",
)
_go_image_repos()
# Gazelle
# gazelle:prefix github.com/gauntletwizard/targetgroupcontroller
http_archive(
name = "bazel_gazelle",
urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.16.0/bazel-gazelle-0.16.0.tar.gz"],
sha256 = "7949fc6cc17b5b191103e97481cf8889217263acf52e00b560683413af204fcb",
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
gazelle_dependencies()
# Direct dependencies:
go_repository(
name = "com_github_prometheus_client_golang",
commit = "d6a9817c4afc94d51115e4a30d449056a3fbf547",
importpath = "github.com/prometheus/client_golang",
)
K8S_VERSION = "1.12.4"
go_repository(
name = "io_k8s_client_go",
remote = "https://github.com/kubernetes/client-go.git",
vcs = "git",
tag = "kubernetes-%s" % K8S_VERSION,
importpath = "k8s.io/client-go",
)
go_repository(
name = "io_k8s_api",
remote = "https://github.com/kubernetes/api.git",
vcs = "git",
importpath = "k8s.io/api",
tag = "kubernetes-%s" % K8S_VERSION,
)
go_repository(
name = "io_k8s_apimachinery",
remote = "https://github.com/kubernetes/apimachinery.git",
vcs = "git",
importpath = "k8s.io/apimachinery",
tag = "kubernetes-%s" % K8S_VERSION,
)
go_repository(
name = "com_github_aws_aws_sdk_go",
commit = "bcf2dfef3f28c8ac3d245e6b0f684bbf34d55a05",
importpath = "github.com/aws/aws-sdk-go",
)
go_repository(
name = "com_github_stretchr_testify",
commit = "f35b8ab0b5a2cef36673838d662e249dd9c94686",
importpath = "github.com/stretchr/testify",
)
# Dependencies required for prometheus
go_repository(
name = "com_github_beorn7_perks",
commit = "3a771d992973f24aa725d07868b467d1ddfceafb",
importpath = "github.com/beorn7/perks",
)
go_repository(
name = "com_github_matttproud_golang_protobuf_extensions",
commit = "c12348ce28de40eed0136aa2b644d0ee0650e56c",
importpath = "github.com/matttproud/golang_protobuf_extensions",
)
go_repository(
name = "com_github_prometheus_common",
commit = "7600349dcfe1abd18d72d3a1770870d9800a7801",
importpath = "github.com/prometheus/common",
)
go_repository(
name = "com_github_prometheus_procfs",
commit = "ae68e2d4c00fed4943b5f6698d504a5fe083da8a",
importpath = "github.com/prometheus/procfs",
)
go_repository(
name = "com_github_prometheus_client_model",
commit = "99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c",
importpath = "github.com/prometheus/client_model",
)
go_repository(
name = "com_github_google_gofuzz",
commit = "24818f796faf91cd76ec7bddd72458fbced7a6c1",
importpath = "github.com/google/gofuzz",
)
go_repository(
name = "com_github_imdario_mergo",
commit = "ca3dcc1022bae9b5510f3c83705b72db1b1a96f9",
importpath = "github.com/imdario/mergo",
)
go_repository(
name = "org_golang_x_crypto",
commit = "ff983b9c42bc9fbf91556e191cc8efb585c16908",
importpath = "golang.org/x/crypto",
)