Serge Bazanski | 9f0e1e8 | 2023-03-31 22:36:54 +0000 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 2 | |
Serge Bazanski | 9f0e1e8 | 2023-03-31 22:36:54 +0000 | [diff] [blame] | 3 | go_library( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 4 | name = "clustercfg_lib", |
Sergiusz Bazanski | 73cef11 | 2019-04-07 00:06:23 +0200 | [diff] [blame] | 5 | srcs = [ |
Serge Bazanski | 9f0e1e8 | 2023-03-31 22:36:54 +0000 | [diff] [blame] | 6 | "cmd_admincreds.go", |
| 7 | "cmd_gencerts.go", |
| 8 | "main.go", |
Sergiusz Bazanski | 73cef11 | 2019-04-07 00:06:23 +0200 | [diff] [blame] | 9 | ], |
Serge Bazanski | 9f0e1e8 | 2023-03-31 22:36:54 +0000 | [diff] [blame] | 10 | importpath = "code.hackerspace.pl/hscloud/cluster/clustercfg", |
| 11 | visibility = ["//visibility:private"], |
Sergiusz Bazanski | 73cef11 | 2019-04-07 00:06:23 +0200 | [diff] [blame] | 12 | deps = [ |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 13 | "//cluster/clustercfg/certs", |
| 14 | "//go/workspace", |
| 15 | "@com_github_spf13_cobra//:cobra", |
| 16 | "@io_k8s_client_go//tools/clientcmd", |
| 17 | "@io_k8s_client_go//tools/clientcmd/api", |
Sergiusz Bazanski | 73cef11 | 2019-04-07 00:06:23 +0200 | [diff] [blame] | 18 | ], |
| 19 | ) |
Serge Bazanski | 9f0e1e8 | 2023-03-31 22:36:54 +0000 | [diff] [blame] | 20 | |
| 21 | go_binary( |
| 22 | name = "clustercfg", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 23 | embed = [":clustercfg_lib"], |
Serge Bazanski | 9f0e1e8 | 2023-03-31 22:36:54 +0000 | [diff] [blame] | 24 | visibility = ["//visibility:public"], |
| 25 | ) |