Skip to content

Commit 0088a75

Browse files
committed
Updated clone based on reviews
1 parent 84cddbd commit 0088a75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apis/v1beta1/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ type VirtualMachineCloneSpec struct {
205205
HardwareVersion string `json:"hardwareVersion,omitempty"`
206206
// DataDisks are additional disks to add to the VM that are not part of the VM's OVA template.
207207
// +optional
208+
// +listType=map
209+
// +listMapKey=name
208210
DataDisks []VSphereDisk `json:"dataDisks,omitempty"`
209211
}
210212

@@ -213,7 +215,6 @@ type VSphereDisk struct {
213215
// Name is used to identify the disk definition. If Name is not specified, the disk will still be created.
214216
// The Name should be unique so that it can be used to clearly identify purpose of the disk, but is not
215217
// required to be unique.
216-
// +optional
217218
Name string `json:"name,omitempty"`
218219
// SizeGiB is the size of the disk in GiB.
219220
// +kubebuilder:validation:Required

0 commit comments

Comments
 (0)