-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathBUILD
50 lines (42 loc) · 1.09 KB
/
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
49
50
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:darwin_arm64": ["@kubectl_darwin_arm64//file"],
"@bazel_tools//src/conditions:darwin_x86_64": ["@kubectl_darwin//file"],
"@bazel_tools//src/conditions:linux_aarch64": ["@kubectl_linux_arm64//file"],
"@bazel_tools//src/conditions:linux_x86_64": ["@kubectl_linux//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"])