Move guestShutdownStops up one level.
This commit is contained in:
parent
b207e0226f
commit
e25358085f
3 changed files with 12 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ spec:
|
|||
cpu: 1
|
||||
memory: 2Gi
|
||||
|
||||
guestShutdownStops: true
|
||||
|
||||
cloudInit: {}
|
||||
|
||||
vm:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue