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 c1ea69e commit db93bec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
USE_BAZEL_VERSION: 5.4.0

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
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.9",
"rhel_9x64": "rhel9.3",
"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 db93bec

Please sign in to comment.