blob: d81a947464b6f422a2cdc942639182f0e74a02a9 [file] [log] [blame]
Serge Bazanski9f0e1e82023-03-31 22:36:54 +00001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
Bartosz Stebelcae27ec2020-07-03 07:05:15 +02002
Serge Bazanski9f0e1e82023-03-31 22:36:54 +00003go_library(
Serge Bazanski97b5cd72023-07-28 17:14:50 +00004 name = "clustercfg_lib",
Sergiusz Bazanski73cef112019-04-07 00:06:23 +02005 srcs = [
Serge Bazanski9f0e1e82023-03-31 22:36:54 +00006 "cmd_admincreds.go",
7 "cmd_gencerts.go",
8 "main.go",
Sergiusz Bazanski73cef112019-04-07 00:06:23 +02009 ],
Serge Bazanski9f0e1e82023-03-31 22:36:54 +000010 importpath = "code.hackerspace.pl/hscloud/cluster/clustercfg",
11 visibility = ["//visibility:private"],
Sergiusz Bazanski73cef112019-04-07 00:06:23 +020012 deps = [
Serge Bazanski97b5cd72023-07-28 17:14:50 +000013 "//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 Bazanski73cef112019-04-07 00:06:23 +020018 ],
19)
Serge Bazanski9f0e1e82023-03-31 22:36:54 +000020
21go_binary(
22 name = "clustercfg",
Serge Bazanski97b5cd72023-07-28 17:14:50 +000023 embed = [":clustercfg_lib"],
Serge Bazanski9f0e1e82023-03-31 22:36:54 +000024 visibility = ["//visibility:public"],
25)