forked from benchsci/rules_kustomize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
48 lines (40 loc) · 935 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package(default_visibility = ["//visibility:public"])
sh_library(
name = "fixgolden",
srcs = ["fixgolden.sh"],
)
filegroup(
name = "exec",
srcs = ["exec.sh"],
)
filegroup(
name = "execpwd",
srcs = ["execpwd.sh"],
)
sh_binary(
name = "kustomize",
srcs = [":execpwd"],
args = ["$(location @kustomize//:file)"],
data = ["@kustomize//:file"],
)
sh_binary(
name = "kubectl_bin",
srcs = select({
"@bazel_tools//src/conditions:linux_x86_64": ["@kubectl_linux//file"],
"@bazel_tools//src/conditions:darwin": ["@kubectl_darwin//file"],
}),
)
sh_binary(
name = "kubectl",
srcs = [":execpwd"],
args = ["$(location :kubectl_bin)"],
data = [":kubectl_bin"],
)
sh_binary(
name = "gcloud",
srcs = [":execpwd"],
args = ["$(location @gcloud)"],
data = ["@gcloud"],
)
# Exported for documentation (see //tools:docs).
exports_files(["defs.bzl"])