From 6a1eef84c993b3a367ea4eb42e4dbc8246a4127b Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Sun, 11 Jun 2023 15:33:45 +0200 Subject: [PATCH] Support currentRam and improve backward compatibility. --- .../helm-test/templates/etcConfig.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.jdrupes.vmoperator.runner.qemu/helm-test/templates/etcConfig.yaml b/org.jdrupes.vmoperator.runner.qemu/helm-test/templates/etcConfig.yaml index 2c2ef06..3119fbe 100644 --- a/org.jdrupes.vmoperator.runner.qemu/helm-test/templates/etcConfig.yaml +++ b/org.jdrupes.vmoperator.runner.qemu/helm-test/templates/etcConfig.yaml @@ -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 }}"