Support currentRam and improve backward compatibility.

This commit is contained in:
Michael Lipp 2023-06-11 15:33:45 +02:00
parent cb9aaeb787
commit 6a1eef84c9

View file

@ -47,7 +47,11 @@ data:
# * bios
# * uefi[-4m]
# * secure[-4m]
{{- if and (hasKey .Values.vm "efiBoot") (not .Values.vm.efiBoot) }}
"firmware": "bios"
{{- else }}
"firmware": "{{ .Values.vm.firmware }}"
{{- end }}
# When terminating, a graceful powerdown is attempted. If it
# doesn't succeed within the given timeout (seconds) SIGTERM
@ -56,7 +60,7 @@ data:
# RAM settings
"maximumRam": "{{ .Values.vm.maximumMemory }}"
# "currentRam": "1G"
"currentRam": "{{ .Values.vm.currentMemory }}"
# CPU settings
"cpuModel": "{{ .Values.vm.cpuModel }}"