Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion api/core/v1alpha2/virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ type VirtualMachineSpec struct {
Memory MemorySpec `json:"memory"`
// List of block devices that can be mounted by disks belonging to the virtual machine.
// The order of booting is determined by the order in the list.
// +kubebuilder:validation:MinItems:=1
// +kubebuilder:validation:MaxItems:=16
BlockDeviceRefs []BlockDeviceSpecRef `json:"blockDeviceRefs"`
Provisioning *Provisioning `json:"provisioning,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions crds/virtualmachines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ spec:
- virtualMachineClassName
- cpu
- memory
- blockDeviceRefs
properties:
provisioning:
description: |
Expand Down Expand Up @@ -929,7 +928,6 @@ spec:

blockDeviceRefs:
type: array
minItems: 1
maxItems: 16
description: |
List of block devices connected to the VM.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (r AddVolumeREST) genMutateRequestHook(opts *subresources.VirtualMachineAdd
Name: opts.Name,
DiskDevice: dd,
Serial: serial,
BootOrder: ptr.To(uint(1)),
ErrorPolicy: ptr.To(virtv1.DiskErrorPolicyReport),
},
}
Expand Down
Loading