blob: 0fe5b98b1bbd95af5cbeee3e2932c544b2a9c7e9 [file] [log] [blame]
Bartosz Stebel0544d272022-05-09 22:39:57 +02001load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +02002load("//bzl:rules.bzl", "copy_go_binary")
3
4copy_go_binary(
5 name = "kubectl",
Serge Bazanski97b5cd72023-07-28 17:14:50 +00006 src = "@io_k8s_kubernetes//cmd/kubectl",
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +02007 visibility = ["//visibility:public"],
8)
9
10copy_go_binary(
11 name = "kubecfg",
Serge Bazanski64033612020-11-12 00:36:50 +010012 src = "//cluster/tools/kartongips",
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +020013 visibility = ["//visibility:public"],
14)
15
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +020016sh_binary(
17 name = "calicoctl",
18 srcs = ["calicoctl.sh"],
Serge Bazanski0f8e5a22021-10-16 20:53:51 +000019 data = [
Bartosz Stebel12f176c2021-06-18 13:12:41 +020020 # it's not worth the effort to bazelify all intermediary versions of calicoctl
21 # just to use them once, so until we finish upgrading use upstream binaries
22 "@calicoctl_3_15//file",
Serge Bazanski0f8e5a22021-10-16 20:53:51 +000023 "//tools:secretstore",
24 "//tools/hscloud",
25 ],
26 deps = [
27 "//tools/hscloud:shell",
28 ],
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +020029)
30
31copy_go_binary(
32 name = "cfssl",
Serge Bazanski97b5cd72023-07-28 17:14:50 +000033 src = "@com_github_cloudflare_cfssl//cmd/cfssl",
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +020034 visibility = ["//visibility:public"],
35)
36
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +020037sh_binary(
Sergiusz Bazanski0037eda2020-06-13 22:43:06 +020038 name = "rook-s3cmd-config",
39 srcs = ["rook-s3cmd-config.sh"],
40 data = [
Sergiusz Bazanski0037eda2020-06-13 22:43:06 +020041 ":kubectl",
Serge Bazanski97b5cd72023-07-28 17:14:50 +000042 "@bazel_tools//tools/bash/runfiles",
Sergiusz Bazanski0037eda2020-06-13 22:43:06 +020043 ],
44)