Skip to content

Commit

Permalink
Updated types
Browse files Browse the repository at this point in the history
  • Loading branch information
vr4manta committed Nov 25, 2024
1 parent b613ef0 commit eb21524
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ type VirtualMachineCloneSpec struct {
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=29
DataDisks []VSphereDisk `json:"dataDisks,omitempty"`
}

Expand All @@ -215,6 +216,7 @@ type VSphereDisk struct {
// Name is used to identify the disk definition. If Name is not specified, the disk will still be created.
// The Name should be unique so that it can be used to clearly identify purpose of the disk, but is not
// required to be unique.
// +kubebuilder:validation:Required
Name string `json:"name,omitempty"`
// SizeGiB is the size of the disk in GiB.
// +kubebuilder:validation:Required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,10 @@ spec:
format: int32
type: integer
required:
- name
- sizeGiB
type: object
maxItems: 29
type: array
x-kubernetes-list-map-keys:
- name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,10 @@ spec:
format: int32
type: integer
required:
- name
- sizeGiB
type: object
maxItems: 29
type: array
x-kubernetes-list-map-keys:
- name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1082,8 +1082,10 @@ spec:
format: int32
type: integer
required:
- name
- sizeGiB
type: object
maxItems: 29
type: array
x-kubernetes-list-map-keys:
- name
Expand Down

0 comments on commit eb21524

Please sign in to comment.