Skip to content

Commit

Permalink
Add missing OS from mapping
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
liranr23 committed Dec 12, 2023
1 parent 4801597 commit 81c4fa5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/controller/plan/adapter/ovirt/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.8",
"rhel_9x64": "rhel9.2",
"sles_11_ppc64": "opensuse15.0",
"sles_11": "opensuse15.0",
"sles_12_s390x": "opensuse15.0",
Expand All @@ -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.
Expand Down

0 comments on commit 81c4fa5

Please sign in to comment.