Bartosz Stebel | 0544d27 | 2022-05-09 22:39:57 +0200 | [diff] [blame] | 1 | load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 2 | load("//bzl:rules.bzl", "copy_go_binary") |
| 3 | |
| 4 | copy_go_binary( |
| 5 | name = "kubectl", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame^] | 6 | src = "@io_k8s_kubernetes//cmd/kubectl", |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 7 | visibility = ["//visibility:public"], |
| 8 | ) |
| 9 | |
| 10 | copy_go_binary( |
| 11 | name = "kubecfg", |
Serge Bazanski | 6403361 | 2020-11-12 00:36:50 +0100 | [diff] [blame] | 12 | src = "//cluster/tools/kartongips", |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 13 | visibility = ["//visibility:public"], |
| 14 | ) |
| 15 | |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 16 | sh_binary( |
| 17 | name = "calicoctl", |
| 18 | srcs = ["calicoctl.sh"], |
Serge Bazanski | 0f8e5a2 | 2021-10-16 20:53:51 +0000 | [diff] [blame] | 19 | data = [ |
Bartosz Stebel | 12f176c | 2021-06-18 13:12:41 +0200 | [diff] [blame] | 20 | # 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 Bazanski | 0f8e5a2 | 2021-10-16 20:53:51 +0000 | [diff] [blame] | 23 | "//tools:secretstore", |
| 24 | "//tools/hscloud", |
| 25 | ], |
| 26 | deps = [ |
| 27 | "//tools/hscloud:shell", |
| 28 | ], |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 29 | ) |
| 30 | |
| 31 | copy_go_binary( |
| 32 | name = "cfssl", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame^] | 33 | src = "@com_github_cloudflare_cfssl//cmd/cfssl", |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 34 | visibility = ["//visibility:public"], |
| 35 | ) |
| 36 | |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 37 | sh_binary( |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 38 | name = "rook-s3cmd-config", |
| 39 | srcs = ["rook-s3cmd-config.sh"], |
| 40 | data = [ |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 41 | ":kubectl", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame^] | 42 | "@bazel_tools//tools/bash/runfiles", |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 43 | ], |
| 44 | ) |