From eb58d501c9bef41203b6d333c56723d13ffa55e2 Mon Sep 17 00:00:00 2001 From: Liran Rotenberg Date: Tue, 12 Dec 2023 15:53:33 +0200 Subject: [PATCH] Add missing OS from mapping Adds el9, win11 and win2k22 for the OS mappings when importing from ovirt. This will help selecting the right template for the VM in the destination cluster. The OS templates names are taken using: https://gitlab.com/libosinfo/osinfo-db/-/tree/main/data/os Signed-off-by: Liran Rotenberg --- pkg/controller/plan/adapter/ovirt/builder.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/controller/plan/adapter/ovirt/builder.go b/pkg/controller/plan/adapter/ovirt/builder.go index 6fbe67a1e..c593105ac 100644 --- a/pkg/controller/plan/adapter/ovirt/builder.go +++ b/pkg/controller/plan/adapter/ovirt/builder.go @@ -88,7 +88,8 @@ var osMap = map[string]string{ "rhel_7_ppc64": "rhel7.7", "rhel_7_s390x": "rhel7.7", "rhel_7x64": "rhel7.7", - "rhel_8x64": "rhel8.1", + "rhel_8x64": "rhel8.9", + "rhel_9x64": "rhel9.3", "sles_11_ppc64": "opensuse15.0", "sles_11": "opensuse15.0", "sles_12_s390x": "opensuse15.0", @@ -110,11 +111,13 @@ var osMap = map[string]string{ "windows_2012x64": "win2k12r2", "windows_2016x64": "win2k16", "windows_2019x64": "win2k19", + "windows_2022": "win2k22", "windows_7": "win10", "windows_7x64": "win10", "windows_8": "win10", "windows_8x64": "win10", "windows_xp": "win10", + "windows_11": "win11", } // oVirt builder.