-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
30 lines (26 loc) · 766 Bytes
/
BUILD
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
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/jdewinne/k8s-dev-scaler
gazelle(name = "gazelle")
go_library(
name = "k8s-dev-scaler_lib",
srcs = ["main.go"],
importpath = "github.com/jdewinne/k8s-dev-scaler",
visibility = ["//visibility:private"],
deps = [
"//scaler",
"@io_k8s_client_go//kubernetes",
"@io_k8s_client_go//rest",
"@io_k8s_client_go//tools/clientcmd",
],
)
go_binary(
name = "k8s-dev-scaler",
embed = [":k8s-dev-scaler_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "k8s-dev-scaler_test",
srcs = ["main_test.go"],
embed = [":k8s-dev-scaler_lib"],
)