Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 1 | load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar", "pkg_deb") |
| 2 | load("//bzl:rules.bzl", "copy_go_binary") |
| 3 | |
| 4 | copy_go_binary( |
| 5 | name = "kubectl", |
| 6 | src = "@io_k8s_kubernetes//cmd/kubectl:kubectl", |
| 7 | visibility = ["//visibility:public"], |
| 8 | ) |
| 9 | |
| 10 | copy_go_binary( |
| 11 | name = "kubecfg", |
Sergiusz Bazanski | e5a956a | 2019-11-17 22:38:40 +0100 | [diff] [blame] | 12 | src = "@com_github_bitnami_kubecfg//:kubecfg", |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 13 | visibility = ["//visibility:public"], |
| 14 | ) |
| 15 | |
| 16 | copy_go_binary( |
| 17 | name = "calicoctl.bin", |
| 18 | src = "@com_github_projectcalico_calicoctl//calicoctl:calicoctl", |
| 19 | visibility = ["//visibility:public"], |
| 20 | ) |
| 21 | |
| 22 | sh_binary( |
| 23 | name = "calicoctl", |
| 24 | srcs = ["calicoctl.sh"], |
| 25 | data = [":calicoctl.bin", "//tools:secretstore"], |
| 26 | ) |
| 27 | |
| 28 | copy_go_binary( |
| 29 | name = "cfssl", |
| 30 | src = "@com_github_cloudflare_cfssl//cmd/cfssl:cfssl", |
| 31 | visibility = ["//visibility:public"], |
| 32 | ) |
| 33 | |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 34 | sh_binary( |
| 35 | name = "nixops", |
| 36 | srcs = ["nixops.sh"], |
Sergiusz Bazanski | 96c428f | 2019-11-17 19:00:46 +0100 | [diff] [blame] | 37 | data = ["@nixops//:bin", "//tools:secretstore"], |
Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 38 | ) |
| 39 | |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 40 | sh_binary( |
| 41 | name = "rook-s3cmd-config", |
| 42 | srcs = ["rook-s3cmd-config.sh"], |
| 43 | data = [ |
| 44 | "@bazel_tools//tools/bash/runfiles", |
| 45 | "@com_github_stedolan_jq//:jq", |
| 46 | ":kubectl", |
| 47 | ], |
| 48 | ) |