m/node/allocs: split new package off m/node
The metropolis/node package contains various unrelated things. One of
these things are node-wide allocations of identifiers.
These are moved here to the new metropolis/node/allocs package.
Additionally, the constants are renamed to move the type of identifier
in front.
Change-Id: Ibc841ca64d4450a7054463e6d2d44753a118e07a
Reviewed-on: https://review.monogon.dev/c/monogon/+/4566
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/node/allocs/BUILD.bazel b/metropolis/node/allocs/BUILD.bazel
new file mode 100644
index 0000000..f2ead45
--- /dev/null
+++ b/metropolis/node/allocs/BUILD.bazel
@@ -0,0 +1,17 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
+ name = "allocs",
+ srcs = [
+ "doc.go",
+ "ids.go",
+ "net_ips.go",
+ "net_protocols.go",
+ "ports.go",
+ ],
+ importpath = "source.monogon.dev/metropolis/node/allocs",
+ visibility = [
+ "//metropolis:__subpackages__",
+ "@io_k8s_kubernetes//pkg/registry:__subpackages__",
+ ],
+)