blob: d81a947464b6f422a2cdc942639182f0e74a02a9 [file] [log] [blame]
load("@io_bazel_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",
"//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"],
)