Support template configuration.

This commit is contained in:
Michael Lipp 2023-08-15 09:51:59 +02:00
parent 81128f9289
commit 6cf5ecadc2
3 changed files with 18 additions and 1 deletions

View file

@ -27,10 +27,15 @@ data:
# The template to use. Resolved relative to /usr/share/vmrunner/templates.
# template: "Standard-VM-latest.ftl.yaml"
<#if cr.spec.runnerTemplate?? && cr.spec.runnerTemplate.source?? >
template: ${ cr.spec.runnerTemplate.source.asString }
</#if>
# The template is copied to the data diretory when the VM starts for
# the first time. Subsequent starts use the copy unless this option is set.
updateTemplate: true
<#if cr.spec.runnerTemplate?? && cr.spec.runnerTemplate.update?? >
updateTemplate: ${ cr.spec.runnerTemplate.update.asBoolean?c }
</#if>
# Define the VM (required)
vm: