diff --git a/packages/core/platform/bundles/paas-full.yaml b/packages/core/platform/bundles/paas-full.yaml index 74806d9e..da5a0e8a 100644 --- a/packages/core/platform/bundles/paas-full.yaml +++ b/packages/core/platform/bundles/paas-full.yaml @@ -134,6 +134,11 @@ releases: namespace: cozy-kubevirt privileged: true dependsOn: [cilium,kubeovn,kubevirt-operator] + {{- $cpuAllocationRatio := index $cozyConfig.data "cpu-allocation-ratio" }} + {{- if $cpuAllocationRatio }} + values: + cpuAllocationRatio: {{ $cpuAllocationRatio }} + {{- end }} - name: kubevirt-instancetypes releaseName: kubevirt-instancetypes diff --git a/packages/system/kubevirt/templates/kubevirt-cr.yaml b/packages/system/kubevirt/templates/kubevirt-cr.yaml index 87889e42..b4ec5b70 100644 --- a/packages/system/kubevirt/templates/kubevirt-cr.yaml +++ b/packages/system/kubevirt/templates/kubevirt-cr.yaml @@ -10,6 +10,9 @@ spec: commonInstancetypesDeployment: enabled: false developerConfiguration: + {{- if .Values.cpuAllocationRatio }} + cpuAllocationRatio: {{ .Values.cpuAllocationRatio }} + {{- end }} featureGates: - HotplugVolumes - ExpandDisks