Skip to content

Commit

Permalink
Add vSphere multi disk support
Browse files Browse the repository at this point in the history
  • Loading branch information
vr4manta committed Oct 9, 2024
1 parent 112d87a commit 981dd64
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion machine/v1beta1/types_vsphereprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type VSphereMachineProviderSpec struct {
// The first disk on that SCSI controller will be the OS disk from the template.
// +openshift:enable:FeatureGate=VSphereMultiDisk
// +optional
Disks []VSphereDisk `json:"disks,omitempty"`
DataDisks []VSphereDisk `json:"dataDisks,omitempty"`
}

// CloneMode is the type of clone operation used to clone a VM from a template.
Expand Down
4 changes: 2 additions & 2 deletions machine/v1beta1/zz_generated.deepcopy.go

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

2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 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.

12 changes: 6 additions & 6 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -22277,19 +22277,19 @@
"description": "CredentialsSecret is a reference to the secret with vSphere credentials.",
"$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference"
},
"diskGiB": {
"description": "DiskGiB is the size of a virtual machine's disk, in GiB. Defaults to the analogue property value in the template from which this machine is cloned. This parameter will be ignored if 'LinkedClone' CloneMode is set.",
"type": "integer",
"format": "int32"
},
"disks": {
"dataDisks": {
"description": "disks is a list of non OS disks to be created and attached to the VM. The max number of disk allowed to be attached is currently 15. This limitation is being applied to allow no more than 16 disks on the default scsi controller for the VM. The first disk on that SCSI controller will be the OS disk from the template.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.VSphereDisk"
}
},
"diskGiB": {
"description": "DiskGiB is the size of a virtual machine's disk, in GiB. Defaults to the analogue property value in the template from which this machine is cloned. This parameter will be ignored if 'LinkedClone' CloneMode is set.",
"type": "integer",
"format": "int32"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
Expand Down

0 comments on commit 981dd64

Please sign in to comment.