Skip to content

Commit

Permalink
Add VMGroup to VSphere Provider workspace
Browse files Browse the repository at this point in the history
For the machine api operator to support
vm-host based zonal a single new field of
`vmGroup` needs to be added that will indicate
the vCenter cluster group to add a newly created
virtual machine into.
  • Loading branch information
jcpowermac committed Oct 22, 2024
1 parent 4f6053f commit fcf94c8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions machine/v1beta1/types_vsphereprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ type Workspace struct {
// ResourcePool is the resource pool in which VMs are created/located.
// +optional
ResourcePool string `gcfg:"resourcepool-path,omitempty" json:"resourcePool,omitempty"`
// VMGroup is the cluster vm group in which virtual machines will be added for vm host group based zonal.
// +optional
VMGroup string `gcfg:"vmGroup,omitempty" json:"vmGroup,omitempty"`
}

// VSphereMachineProviderStatus is the type that will be embedded in a Machine.Status.ProviderStatus field.
Expand Down
1 change: 1 addition & 0 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.

7 changes: 7 additions & 0 deletions openapi/generated_openapi/zz_generated.openapi.go

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

4 changes: 4 additions & 0 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -22376,6 +22376,10 @@
"server": {
"description": "Server is the IP address or FQDN of the vSphere endpoint.",
"type": "string"
},
"vmGroup": {
"description": "VMGroup is the cluster vm group in which virtual machines will be added for vm host group based zonal.",
"type": "string"
}
}
},
Expand Down

0 comments on commit fcf94c8

Please sign in to comment.