m/cli/metroctl: factor out some helper functions
We will need these to create metroctl-compatible configs from
//metropolis/cluster/launch.
Change-Id: I2705afefb62b7e1b35c87d9753c4ca9c7f534c26
Reviewed-on: https://review.monogon.dev/c/monogon/+/1324
Tested-by: Jenkins CI
Reviewed-by: Mateusz Zalega <mateusz@monogon.tech>
diff --git a/metropolis/cli/metroctl/core/BUILD.bazel b/metropolis/cli/metroctl/core/BUILD.bazel
index af948af..133ff2e 100644
--- a/metropolis/cli/metroctl/core/BUILD.bazel
+++ b/metropolis/cli/metroctl/core/BUILD.bazel
@@ -3,6 +3,7 @@
go_library(
name = "core",
srcs = [
+ "config.go",
"core.go",
"install.go",
"rpc.go",
@@ -18,6 +19,9 @@
"@com_github_diskfs_go_diskfs//disk",
"@com_github_diskfs_go_diskfs//filesystem",
"@com_github_diskfs_go_diskfs//partition/gpt",
+ "@io_k8s_client_go//pkg/apis/clientauthentication/v1:clientauthentication",
+ "@io_k8s_client_go//tools/clientcmd",
+ "@io_k8s_client_go//tools/clientcmd/api",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_protobuf//proto",
"@org_golang_x_net//proxy",