Skip to content

Commit f1f4494

Browse files
committed
Added thinProvisioned flag for data disks
1 parent dc0d541 commit f1f4494

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

machine/v1beta1/types_vsphereprovider.go

+14-9
Original file line numberDiff line numberDiff line change
@@ -198,22 +198,27 @@ type VSphereDisk struct {
198198
// +kubebuilder:validation:Maximum=16384
199199
// +required
200200
SizeGiB int32 `json:"sizeGiB"`
201-
// provisionType flag to indicate whether the virtual disk backing
202-
// file should be allocated lazily (using thin provisioning) or be
203-
// fully allocated (standard provisioning).
201+
// provisioningType specifies the provisioning type to be used by default for VirtualMachine volumes exclusively
202+
// owned by this VirtualMachine. This does not apply to PersistentVolumeClaim volumes that are created and managed externally.
204203
// If not set, the setting will be provided by the default storage policy.
205204
// +optional
206-
ProvisionType ProvisionType `json:"provisionType,omitempty"`
205+
ProvisioningType ProvisioningType `json:"provisioningType,omitempty"`
207206
}
208207

209-
type ProvisionType string
208+
type ProvisioningType string
210209

211210
var (
212-
// Thin is used to configure disk to be thin provisioned
213-
Thin ProvisionType = "Thin"
211+
// ThinProvisioned creates the disk using thin provisioning. This means a sparse (allocate on demand) format
212+
// with additional space optimizations.
213+
ThinProvisioned ProvisioningType = "ThinProvisioned"
214214

215-
// Standard is used to configure disk to be fully provisioned
216-
Standard ProvisionType = "Standard"
215+
// ThickProvisioned creates the disk with all space allocated.
216+
ThickProvisioned ProvisioningType = "ThickProvisioned"
217+
218+
// EagerlyZeroed creates the disk using eager zero provisioning. An eager zeroed thick disk
219+
// has all space allocated and wiped clean of any previous contents on the physical media at
220+
// creation time. Such disks may take longer time during creation compared to other disk formats.
221+
EagerlyZeroed ProvisioningType = "EagerlyZeroed"
217222
)
218223

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

machine/v1beta1/zz_generated.swagger_doc_generated.go

+4-4
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

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

openapi/openapi.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22523,8 +22523,8 @@
2252322523
"type": "string",
2252422524
"default": ""
2252522525
},
22526-
"provisionType": {
22527-
"description": "provisionType 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.",
22526+
"provisioningType": {
22527+
"description": "provisioningType specifies the provisioning type to be used by default for VirtualMachine volumes exclusively owned by this VirtualMachine. This does not apply to PersistentVolumeClaim volumes that are created and managed externally. If not set, the setting will be provided by the default storage policy.",
2252822528
"type": "string"
2252922529
},
2253022530
"sizeGiB": {

0 commit comments

Comments
 (0)