Skip to content

Commit

Permalink
Added thinProvisioned flag for data disks
Browse files Browse the repository at this point in the history
  • Loading branch information
vr4manta committed Jan 16, 2025
1 parent c280622 commit 34c1b68
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
8 changes: 8 additions & 0 deletions machine/v1beta1/types_vsphereprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ type VSphereDisk struct {
// +kubebuilder:validation:Maximum=16384
// +required
SizeGiB int32 `json:"sizeGiB"`
// 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.
// +optional
ThinProvisioned *bool `json:"thinProvisioned,omitempty"`
}

// WorkspaceConfig defines a workspace configuration for the vSphere cloud
Expand Down
9 changes: 8 additions & 1 deletion machine/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions machine/v1beta1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -22524,10 +22524,14 @@
"default": ""
},
"sizeGiB": {
"description": "sizeGiB is the size of the disk in GiB. The maximum supported size is 57742 GiB.",
"description": "sizeGiB is the size of the disk in GiB. The maximum supported size is 16384 GiB.",
"type": "integer",
"format": "int32",
"default": 0
},
"thinProvisioned": {
"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.",
"type": "boolean"
}
}
},
Expand Down

0 comments on commit 34c1b68

Please sign in to comment.