Skip to content

Commit b6478c3

Browse files
committed
fix(kubevirt): use valid container image tags for vm create
The 'latest' tag for several containerdisk images was either missing or not the most appropriate tag to use. This change updates the image references to specific, valid tags to ensure reliability. - 'ubuntu' is updated from 'latest' to '24.04'. - 'centos-stream' is updated from 'latest' to '9-latest'. - 'opensuse-tumbleweed' is updated from 'latest' to '1.0.0'. - 'opensuse-leap' is updated from 'latest' to '15.6'. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
1 parent 2e48873 commit b6478c3

File tree

1 file changed

+12
-11
lines changed
  • pkg/toolsets/kubevirt/vm/create

1 file changed

+12
-11
lines changed

pkg/toolsets/kubevirt/vm/create/tool.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -341,16 +341,17 @@ func resolveContainerDisk(input string) string {
341341
// Common OS name mappings to containerdisk images
342342
osMap := map[string]string{
343343
"fedora": "quay.io/containerdisks/fedora:latest",
344-
"ubuntu": "quay.io/containerdisks/ubuntu:latest",
345-
"centos": "quay.io/containerdisks/centos-stream:latest",
346-
"centos-stream": "quay.io/containerdisks/centos-stream:latest",
344+
"ubuntu": "quay.io/containerdisks/ubuntu:24.04",
345+
"centos": "quay.io/containerdisks/centos-stream:9-latest",
346+
"centos-stream": "quay.io/containerdisks/centos-stream:9-latest",
347347
"debian": "quay.io/containerdisks/debian:latest",
348-
"opensuse": "quay.io/containerdisks/opensuse-tumbleweed:latest",
349-
"opensuse-tumbleweed": "quay.io/containerdisks/opensuse-tumbleweed:latest",
350-
"opensuse-leap": "quay.io/containerdisks/opensuse-leap:latest",
351-
"rhel8": "registry.redhat.io/rhel8/rhel-guest-image:latest",
352-
"rhel9": "registry.redhat.io/rhel9/rhel-guest-image:latest",
353-
"rhel10": "registry.redhat.io/rhel10/rhel-guest-image:latest",
348+
"opensuse": "quay.io/containerdisks/opensuse-tumbleweed:1.0.0",
349+
"opensuse-tumbleweed": "quay.io/containerdisks/opensuse-tumbleweed:1.0.0",
350+
"opensuse-leap": "quay.io/containerdisks/opensuse-leap:15.6",
351+
// NOTE: The following RHEL images could not be verified due to authentication requirements.
352+
"rhel8": "registry.redhat.io/rhel8/rhel-guest-image:latest",
353+
"rhel9": "registry.redhat.io/rhel9/rhel-guest-image:latest",
354+
"rhel10": "registry.redhat.io/rhel10/rhel-guest-image:latest",
354355
}
355356

356357
// Normalize input to lowercase for lookup
@@ -374,11 +375,11 @@ func getDefaultContainerDisks() []DataSourceInfo {
374375
},
375376
{
376377
Name: "ubuntu",
377-
Source: "quay.io/containerdisks/ubuntu:latest",
378+
Source: "quay.io/containerdisks/ubuntu:24.04",
378379
},
379380
{
380381
Name: "centos-stream",
381-
Source: "quay.io/containerdisks/centos-stream:latest",
382+
Source: "quay.io/containerdisks/centos-stream:9-latest",
382383
},
383384
{
384385
Name: "debian",

0 commit comments

Comments
 (0)