Skip to content

Commit

Permalink
update kubevirt for arm builds, load dm_crypt kernel module
Browse files Browse the repository at this point in the history
patch emulatedMachines
  • Loading branch information
ibrokethecloud authored and Vicente-Cheng committed Oct 22, 2024
1 parent f8a05d7 commit b85cf7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions package/harvester-os/files/system/oem/99_modules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: "load kernel modules"
stages:
boot:
- name: "load dm_crypt"
commands:
- modprobe dm_crypt
4 changes: 3 additions & 1 deletion scripts/hack/patch-harvester-chart
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash

patch_harvester_chart(){
local kubevirt_arm_version="v1.1.0"
local kubevirt_arm_version="v1.2.2"
local kubevirt_arm_registry="quay.io\/kubevirt"
local kubevirt_amd_registry="registry.suse.com\/suse\/sles\/15.5"
local harvester_chart_dir=$1
local values_file="${harvester_chart_dir}/values.yaml"
sed -ie "s/${kubevirt_amd_registry}/${kubevirt_arm_registry}/g" ${values_file}
# drop emulatedMachines from harvester chart
yq -i 'del(.kubevirt.spec.configuration.emulatedMachines)' ${values_file}
version=${kubevirt_arm_version} yq -i '.kubevirt-operator.containers.operator.image.tag = env(version)' ${values_file}
}

0 comments on commit b85cf7c

Please sign in to comment.