mirror of
https://gerrit.hackerspace.pl/hscloud
synced 2025-01-20 15:43:53 +00:00
Change-Id: Ib66d48dd4b5eab23c31bb4931855b2f9c7a6d57c Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/2093 Reviewed-by: q3k <q3k@hackerspace.pl> Reviewed-by: radex <radex@hackerspace.pl>
26 lines
684 B
Python
26 lines
684 B
Python
load("@rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
go_library(
|
|
name = "clustercfg_lib",
|
|
srcs = [
|
|
"cmd_admincreds.go",
|
|
"cmd_gencerts.go",
|
|
"main.go",
|
|
],
|
|
importpath = "code.hackerspace.pl/hscloud/cluster/clustercfg",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//cluster/clustercfg/certs",
|
|
"//cluster/clustercfg/clusters",
|
|
"//go/workspace",
|
|
"@com_github_spf13_cobra//:cobra",
|
|
"@io_k8s_client_go//tools/clientcmd",
|
|
"@io_k8s_client_go//tools/clientcmd/api",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "clustercfg",
|
|
embed = [":clustercfg_lib"],
|
|
visibility = ["//visibility:public"],
|
|
)
|