Move "oneof"s before properties.

This commit is contained in:
Michael Lipp 2023-08-07 18:28:02 +02:00
parent a28ccfc8e0
commit c0fbf06b54

View file

@ -37,6 +37,10 @@ spec:
vm: vm:
type: object type: object
description: Defines the VM. description: Defines the VM.
oneOf:
- properties:
maximumCpus: {}
cpuTopology: {}
properties: properties:
state: state:
description: >- description: >-
@ -53,9 +57,6 @@ spec:
explicitly or to carefully backup the data explicitly or to carefully backup the data
directory. directory.
type: string type: string
host:
description: The host to run this vm on.
type: string
useTpm: useTpm:
description: Whether to provide a software TPM. description: Whether to provide a software TPM.
type: boolean type: boolean
@ -128,6 +129,10 @@ spec:
description: >- description: >-
Supported types are "tap" and "user" (for debugging). Supported types are "tap" and "user" (for debugging).
type: object type: object
oneOf:
- properties:
tap: {}
user: {}
properties: properties:
tap: tap:
type: object type: object
@ -151,10 +156,6 @@ spec:
default: "virtio-net" default: "virtio-net"
net: net:
type: string type: string
oneOf:
- properties:
tap:
user:
default: [] default: []
disks: disks:
description: >- description: >-
@ -164,6 +165,15 @@ spec:
type: array type: array
items: items:
type: object type: object
oneOf:
- properties:
volumeClaimTemplate:
required:
- volumeClaimTemplate
- properties:
cdrom:
required:
- cdrom
properties: properties:
volumeClaimTemplate: volumeClaimTemplate:
description: >- description: >-
@ -440,15 +450,6 @@ spec:
- image - image
bootindex: bootindex:
type: integer type: integer
oneOf:
- properties:
volumeClaimTemplate:
required:
- volumeClaimTemplate
- properties:
cdrom:
required:
- cdrom
default: [] default: []
display: display:
type: object type: object
@ -467,10 +468,6 @@ spec:
type: integer type: integer
default: 2 default: 2
default: { spice: { port: 5900, usbRedirects: 2 } } default: { spice: { port: 5900, usbRedirects: 2 } }
oneOf:
- properties:
maximumCpus:
cpuTopology:
required: required:
- vm - vm
status: status: