From da556b469f04951573eb50320ccabb014d063aa2 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/controller/plan/adapter/ovirt/builder.go b/pkg/controller/plan/adapter/ovirt/builder.go index 6fbe67a1e..2f6097a59 100644 --- a/pkg/controller/plan/adapter/ovirt/builder.go +++ b/pkg/controller/plan/adapter/ovirt/builder.go @@ -89,6 +89,7 @@ var osMap = map[string]string{ "rhel_7_s390x": "rhel7.7", "rhel_7x64": "rhel7.7", "rhel_8x64": "rhel8.1", + "rhel_9x64": "rhel9.1", "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.