Skip to content

Commit d6b81cd

Browse files
committed
Added thinProvisioned flag for data disks
1 parent 52377f0 commit d6b81cd

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

machine/v1beta1/types_vsphereprovider.go

+8-2
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,17 @@ type VSphereDisk struct {
193193
// +required
194194
Name string `json:"name"`
195195
// sizeGiB is the size of the disk in GiB.
196-
// The maximum supported size is 57742 GiB.
196+
// The maximum supported size is 16384 GiB.
197197
// +kubebuilder:validation:Minimum=1
198-
// +kubebuilder:validation:Maximum=57742
198+
// +kubebuilder:validation:Maximum=16384
199199
// +required
200200
SizeGiB int32 `json:"sizeGiB"`
201+
// thinProvisioned flag to indicate whether the virtual disk backing
202+
// file should be allocated lazily (using thin provisioning) or be
203+
// fully allocated (standard provisioning).
204+
// If not set, the setting will be provided by the default storage policy.
205+
// +optional
206+
ThinProvisioned bool `json:"thinProvisioned,omitempty"`
201207
}
202208

203209
// WorkspaceConfig defines a workspace configuration for the vSphere cloud

machine/v1beta1/zz_generated.swagger_doc_generated.go

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/generated_openapi/zz_generated.openapi.go

+8-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -22524,10 +22524,14 @@
2252422524
"default": ""
2252522525
},
2252622526
"sizeGiB": {
22527-
"description": "sizeGiB is the size of the disk in GiB. The maximum supported size is 57742 GiB.",
22527+
"description": "sizeGiB is the size of the disk in GiB. The maximum supported size is 16384 GiB.",
2252822528
"type": "integer",
2252922529
"format": "int32",
2253022530
"default": 0
22531+
},
22532+
"thinProvisioned": {
22533+
"description": "thinProvisioned flag to indicate whether the virtual disk backing file should be allocated lazily (using thin provisioning) or be fully allocated (standard provisioning). If not set, the setting will be provided by the default storage policy.",
22534+
"type": "boolean"
2253122535
}
2253222536
}
2253322537
},

0 commit comments

Comments
 (0)