treewide: delete cloud/ except cloud/agent
bmdb is no longer used in production and would be hard to maintain. The only non-stub provider is Equinix Metal, which is shutting down in 2026, and we are moving away from CockroachDB. Keep the agent, which we'll need for Monogon Cloud.
Change-Id: If8b35c3ac8cdeed96a2b1814c0de7607e8acec63
Reviewed-on: https://review.monogon.dev/c/monogon/+/4235
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/cloud/agent/e2e/BUILD.bazel b/cloud/agent/e2e/BUILD.bazel
index 7df7ad6..91f09ce 100644
--- a/cloud/agent/e2e/BUILD.bazel
+++ b/cloud/agent/e2e/BUILD.bazel
@@ -19,7 +19,6 @@
},
deps = [
"//cloud/agent/api",
- "//cloud/bmaas/server/api",
"//metropolis/proto/api",
"//osbase/oci",
"//osbase/oci/registry",
diff --git a/cloud/agent/e2e/main_test.go b/cloud/agent/e2e/main_test.go
index 8dbce49..dc3108e 100644
--- a/cloud/agent/e2e/main_test.go
+++ b/cloud/agent/e2e/main_test.go
@@ -31,8 +31,8 @@
"google.golang.org/protobuf/proto"
apb "source.monogon.dev/cloud/agent/api"
- bpb "source.monogon.dev/cloud/bmaas/server/api"
mpb "source.monogon.dev/metropolis/proto/api"
+
"source.monogon.dev/osbase/oci"
"source.monogon.dev/osbase/oci/registry"
"source.monogon.dev/osbase/pki"
@@ -63,13 +63,13 @@
}
type fakeServer struct {
- hardwareReport *bpb.AgentHardwareReport
- installationRequest *bpb.OSInstallationRequest
- installationReport *bpb.OSInstallationReport
+ hardwareReport *apb.AgentHardwareReport
+ installationRequest *apb.OSInstallationRequest
+ installationReport *apb.OSInstallationReport
}
-func (f *fakeServer) Heartbeat(ctx context.Context, req *bpb.HeartbeatRequest) (*bpb.HeartbeatResponse, error) {
- var res bpb.HeartbeatResponse
+func (f *fakeServer) Heartbeat(ctx context.Context, req *apb.HeartbeatRequest) (*apb.HeartbeatResponse, error) {
+ var res apb.HeartbeatResponse
if req.HardwareReport != nil {
f.hardwareReport = req.HardwareReport
}
@@ -106,9 +106,9 @@
t.Fatal(err)
}
- f.installationRequest = &bpb.OSInstallationRequest{
+ f.installationRequest = &apb.OSInstallationRequest{
Generation: 5,
- Type: &bpb.OSInstallationRequest_Metropolis{Metropolis: &bpb.MetropolisInstallationRequest{
+ Type: &apb.OSInstallationRequest_Metropolis{Metropolis: &apb.MetropolisInstallationRequest{
OsImage: &mpb.OSImageRef{
Scheme: "http",
Host: registryAddr.String(),
@@ -169,7 +169,7 @@
Certificate: [][]byte{serverCert},
PrivateKey: serverPrivKey,
})))
- bpb.RegisterAgentCallbackServer(s, &f)
+ apb.RegisterAgentCallbackServer(s, &f)
grpcLis, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {
panic(err)