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 52377f0 commit d6b81cd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
10 changes: 8 additions & 2 deletions machine/v1beta1/types_vsphereprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,17 @@ type VSphereDisk struct {
// +required
Name string `json:"name"`
// sizeGiB is the size of the disk in GiB.
// The maximum supported size is 57742 GiB.
// The maximum supported size is 16384 GiB.
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=57742
// +kubebuilder:validation:Maximum=16384
// +required
SizeGiB int32 `json:"sizeGiB"`
// 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.
// +optional
ThinProvisioned bool `json:"thinProvisioned,omitempty"`
}

// WorkspaceConfig defines a workspace configuration for the vSphere cloud
Expand Down
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 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.",
"type": "boolean"
}
}
},
Expand Down

0 comments on commit d6b81cd

Please sign in to comment.