Skip to content

Commit 34c1b68

Browse files
committedJan 16, 2025·
Added thinProvisioned flag for data disks
1 parent c280622 commit 34c1b68

File tree

5 files changed

+33
-6
lines changed

5 files changed

+33
-6
lines changed
 

‎machine/v1beta1/types_vsphereprovider.go

+8
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,14 @@ type VSphereDisk struct {
198198
// +kubebuilder:validation:Maximum=16384
199199
// +required
200200
SizeGiB int32 `json:"sizeGiB"`
201+
// thinProvisioned flag to indicate to the underlying filesystem, whether the
202+
// virtual disk backing file should be allocated lazily (using
203+
// thin provisioning). This flag is only used for file systems
204+
// that support configuring the provisioning policy on a per-file
205+
// basis, such as VMFS3. If not set, the setting will be provided
206+
// by the default storage policy.
207+
// +optional
208+
ThinProvisioned *bool `json:"thinProvisioned,omitempty"`
201209
}
202210

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

‎machine/v1beta1/zz_generated.deepcopy.go

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

‎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 to the underlying filesystem, whether the virtual disk backing file should be allocated lazily (using thin provisioning). This flag is only used for file systems that support configuring the provisioning policy on a per-file basis, such as VMFS3. If not set, the setting will be provided by the default storage policy.",
22534+
"type": "boolean"
2253122535
}
2253222536
}
2253322537
},

0 commit comments

Comments
 (0)
Please sign in to comment.