treewide: switch to gomod and bump everything
This switches version resolution from fietsje to gomod and updates
all Go dependencies. It also bumps rules_go (required by gVisor) and
switches the Gazelle naming convention from go_default_xxx to the
standard Bazel convention of the default target having the package
name.
Since Kubernetes dropped upstream Bazel support and doesn't check in
all generated files I manually pregenerated the OpenAPI spec. This
should be fixed, but because of the already-huge scope of this CL
and the rebase complexity this is not in here.
Change-Id: Iec8ea613d06946882426c2f9fad5bda7e8aaf833
Reviewed-on: https://review.monogon.dev/c/monogon/+/639
Reviewed-by: Sergiusz Bazanski <serge@monogon.tech>
Reviewed-by: Leopold Schabel <leo@nexantic.com>
diff --git a/metropolis/node/BUILD.bazel b/metropolis/node/BUILD.bazel
index 893a481..d97cb60 100644
--- a/metropolis/node/BUILD.bazel
+++ b/metropolis/node/BUILD.bazel
@@ -6,7 +6,7 @@
load("@rules_pkg//:pkg.bzl", "pkg_zip")
go_library(
- name = "go_default_library",
+ name = "node",
srcs = [
"ids.go",
"ports.go",
@@ -70,8 +70,8 @@
"@com_github_coredns_coredns//:coredns": "/kubernetes/bin/coredns",
# runsc/gVisor
- "@com_github_google_gvisor//runsc": "/containerd/bin/runsc",
- "@com_github_google_gvisor//shim:containerd-shim-runsc-v1": "/containerd/bin/containerd-shim-runsc-v1",
+ "@dev_gvisor_gvisor//runsc": "/containerd/bin/runsc",
+ "@dev_gvisor_gvisor//shim": "/containerd/bin/containerd-shim-runsc-v1",
# runc (runtime in files_cc because of cgo)
"@com_github_containerd_containerd//cmd/containerd-shim-runc-v2": "/containerd/bin/containerd-shim-runc-v2",
@@ -85,8 +85,7 @@
"//metropolis/node/kubernetes/containerd:cnispec.gojson": "/containerd/conf/cnispec.gojson",
# Containerd preseed bundles
- "//metropolis/test/e2e/preseedtest:preseedtest.tar": "/containerd/preseed/k8s.io/preseedtest.tar",
- "//metropolis/test/e2e/k8s_cts:k8s_cts_image.tar": "/containerd/preseed/k8s.io/k8s_cts.tar",
+ "//metropolis/test/e2e/preseedtest:preseedtest_image.tar": "/containerd/preseed/k8s.io/preseedtest.tar",
"//metropolis/vm/smoketest:smoketest_container.tar": "/containerd/preseed/k8s.io/smoketest.tar",
# CNI Plugins
@@ -129,7 +128,7 @@
# to the actual bundle format.
# TODO(lorenz): Replace this
pkg_zip(
- name = "node",
+ name = "bundle",
srcs = [
":kernel_efi",
":verity_rootfs",