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:
|
update:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
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:
|
loadBalancerService:
|
||||||
description: >-
|
description: >-
|
||||||
Data to be merged with the loadBalancerService
|
Data to be merged with the loadBalancerService
|
||||||
|
|
@ -999,12 +1005,6 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
enum: [ "Stopped", "Running" ]
|
enum: [ "Stopped", "Running" ]
|
||||||
default: "Stopped"
|
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:
|
machineUuid:
|
||||||
description: >-
|
description: >-
|
||||||
The machine's uuid. If none is specified, a uuid
|
The machine's uuid. If none is specified, a uuid
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ spec:
|
||||||
cpu: 1
|
cpu: 1
|
||||||
memory: 2Gi
|
memory: 2Gi
|
||||||
|
|
||||||
|
guestShutdownStops: true
|
||||||
|
|
||||||
cloudInit: {}
|
cloudInit: {}
|
||||||
|
|
||||||
vm:
|
vm:
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,9 @@ data:
|
||||||
updateTemplate: ${ cr.spec.runnerTemplate.update.asBoolean?c }
|
updateTemplate: ${ cr.spec.runnerTemplate.update.asBoolean?c }
|
||||||
</#if>
|
</#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
|
# Forward the cloud-init data if provided
|
||||||
<#if cr.spec.cloudInit??>
|
<#if cr.spec.cloudInit??>
|
||||||
cloudInit:
|
cloudInit:
|
||||||
|
|
@ -63,8 +66,6 @@ data:
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
guestShutdownStops: ${ cr.spec.vm.guestShutdownStops!false?c }
|
|
||||||
|
|
||||||
# Define the VM (required)
|
# Define the VM (required)
|
||||||
vm:
|
vm:
|
||||||
# The VM's name (required)
|
# The VM's name (required)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue