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 da556b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/plan/adapter/ovirt/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
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 da556b4

Please sign in to comment.