Move guestShutdownStops up one level.

This commit is contained in:
Michael Lipp 2024-02-26 15:15:55 +01:00
parent b207e0226f
commit e25358085f
3 changed files with 12 additions and 9 deletions

View file

@ -933,6 +933,12 @@ spec:
update:
type: boolean
default: true
guestShutdownStops:
description: >-
If true, sets the VM's state to "Stopped" when
the VM terminates due to a shutdown by the guest.
type: boolean
default: false
loadBalancerService:
description: >-
Data to be merged with the loadBalancerService
@ -999,12 +1005,6 @@ spec:
type: string
enum: [ "Stopped", "Running" ]
default: "Stopped"
guestShutdownStops:
description: >-
If true, sets the state to "Stopped" when
the VM terminates due to a shutdown by the guest.
type: boolean
default: false
machineUuid:
description: >-
The machine's uuid. If none is specified, a uuid

View file

@ -13,7 +13,9 @@ spec:
requests:
cpu: 1
memory: 2Gi
guestShutdownStops: true
cloudInit: {}
vm:

View file

@ -45,6 +45,9 @@ data:
updateTemplate: ${ cr.spec.runnerTemplate.update.asBoolean?c }
</#if>
# Whether a shutdown initiated by the guest stops the pod deployment
guestShutdownStops: ${ cr.spec.guestShutdownStops!false?c }
# Forward the cloud-init data if provided
<#if cr.spec.cloudInit??>
cloudInit:
@ -63,8 +66,6 @@ data:
</#if>
</#if>
guestShutdownStops: ${ cr.spec.vm.guestShutdownStops!false?c }
# Define the VM (required)
vm:
# The VM's name (required)