root: move metropolis-specific tools to metropolis/, rename launch-multi2 to launch-cluster
Since we now have more than one top-level project it makes sense to not
have metropolis aliases in the root.
We also drive-by rename launch-multi2 to launch-cluster and bump it up
to three nodes.
Change-Id: Ic99065465006e0dace05bcc1f2a702d430014b84
Reviewed-on: https://review.monogon.dev/c/monogon/+/2764
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/metropolis/test/launch/cli/launch-cluster/BUILD.bazel b/metropolis/test/launch/cli/launch-cluster/BUILD.bazel
new file mode 100644
index 0000000..974258a
--- /dev/null
+++ b/metropolis/test/launch/cli/launch-cluster/BUILD.bazel
@@ -0,0 +1,33 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+load("@bazel_skylib//rules:native_binary.bzl", "native_test")
+
+go_library(
+ name = "launch-cluster_lib",
+ srcs = ["main.go"],
+ importpath = "source.monogon.dev/metropolis/test/launch/cli/launch-cluster",
+ visibility = ["//visibility:private"],
+ deps = [
+ "//metropolis/cli/metroctl/core",
+ "//metropolis/cli/pkg/context",
+ "//metropolis/test/launch/cluster",
+ ],
+)
+
+go_binary(
+ name = "launch-cluster_bin",
+ data = [
+ "//metropolis/cli/metroctl",
+ ],
+ embed = [":launch-cluster_lib"],
+ visibility = ["//:__pkg__"],
+)
+
+# Wrap the binary in a native_test so that we can run it with the
+# `bazel test` command inside the sandbox.
+native_test(
+ name = "launch-cluster",
+ src = ":launch-cluster_bin",
+ out = "launch",
+ tags = ["manual"],
+ visibility = ["//visibility:public"],
+)