Rename experimental Void image to void

Replace the old `void-exp` repository defaults with `void` so the Make targets,
registration helper, example config, verification messaging, and sample test
fixtures all line up with the new managed image name.

Keep the scope to repo-facing naming only: config overrides, helper output, and
test fixtures now expect `void`, while runtime compatibility for existing local
`void-exp` VMs remains an operational concern outside this commit.

Validation: go test ./..., make build, and a local `banger vm create --image void`
smoke boot with ssh and opencode ports up.
This commit is contained in:
Thales Maciel 2026-04-01 20:15:28 -03:00
parent 70bc6d07d0
commit 497e6dca3d
No known key found for this signature in database
GPG key ID: 33112E6833C34679
8 changed files with 14 additions and 14 deletions

View file

@ -50,7 +50,7 @@ log_level = "debug"
web_listen_addr = ""
firecracker_bin = "/opt/firecracker"
ssh_key_path = "/tmp/custom-key"
default_image_name = "void-exp"
default_image_name = "void"
auto_stop_stale_after = "1h"
stats_poll_interval = "15s"
metrics_poll_interval = "30s"
@ -81,7 +81,7 @@ default_dns = "9.9.9.9"
if cfg.SSHKeyPath != "/tmp/custom-key" {
t.Fatalf("SSHKeyPath = %q", cfg.SSHKeyPath)
}
if cfg.DefaultImageName != "void-exp" {
if cfg.DefaultImageName != "void" {
t.Fatalf("DefaultImageName = %q", cfg.DefaultImageName)
}
if cfg.AutoStopStaleAfter != time.Hour {

View file

@ -90,7 +90,7 @@ func TestPromoteImageCopiesBootArtifactsIntoArtifactDir(t *testing.T) {
db := openDaemonStore(t)
image := model.Image{
ID: "img-promote",
Name: "void-exp",
Name: "void",
Managed: false,
RootfsPath: rootfs,
KernelPath: kernel,

View file

@ -82,7 +82,7 @@ func TestDashboardPageRendersSummaryAndTables(t *testing.T) {
},
},
vms: []model.VMRecord{{ID: "vm-1", Name: "smth", State: model.VMStateRunning, CreatedAt: model.Now(), Runtime: model.VMRuntime{GuestIP: "172.16.0.2"}, Spec: model.VMSpec{VCPUCount: 2, MemoryMiB: 1024, WorkDiskSizeBytes: 8 << 30}}},
images: []model.Image{{ID: "img-1", Name: "void-exp", Managed: true, RootfsPath: "/tmp/rootfs.ext4", CreatedAt: model.Now()}},
images: []model.Image{{ID: "img-1", Name: "void", Managed: true, RootfsPath: "/tmp/rootfs.ext4", CreatedAt: model.Now()}},
}
req := httptest.NewRequest(http.MethodGet, "/", nil)
@ -93,7 +93,7 @@ func TestDashboardPageRendersSummaryAndTables(t *testing.T) {
t.Fatalf("status = %d, want 200", rec.Code)
}
body := rec.Body.String()
for _, want := range []string{"vCPU", "2 / 8", "1G / 16G", "8G / 20G", "9G free", "smth", "void-exp", "Create VM"} {
for _, want := range []string{"vCPU", "2 / 8", "1G / 16G", "8G / 20G", "9G free", "smth", "void", "Create VM"} {
if !strings.Contains(body, want) {
t.Fatalf("body missing %q\n%s", want, body)
}
@ -174,7 +174,7 @@ func TestVMShowPageRendersRunningActions(t *testing.T) {
WorkDiskBytes: 32 << 20,
},
},
image: model.Image{ID: "img-1", Name: "void-exp"},
image: model.Image{ID: "img-1", Name: "void"},
ports: api.VMPortsResult{
Name: "smth",
Ports: []api.VMPort{
@ -211,7 +211,7 @@ func TestVMListShowsImageNameAndLink(t *testing.T) {
{ID: "vm-1", Name: "smth", ImageID: "img-1", State: model.VMStateRunning, CreatedAt: model.Now(), Spec: model.VMSpec{VCPUCount: 2, MemoryMiB: 1024, WorkDiskSizeBytes: 8 << 30}},
},
images: []model.Image{
{ID: "img-1", Name: "void-exp"},
{ID: "img-1", Name: "void"},
},
}
@ -223,7 +223,7 @@ func TestVMListShowsImageNameAndLink(t *testing.T) {
t.Fatalf("status = %d, want 200", rec.Code)
}
body := rec.Body.String()
for _, want := range []string{">void-exp</a>", "href=\"/images/img-1\""} {
for _, want := range []string{">void</a>", "href=\"/images/img-1\""} {
if !strings.Contains(body, want) {
t.Fatalf("body missing %q\n%s", want, body)
}