Documentation ¶
Overview ¶
Package vsphere contains contains API Schema definitions for vSphere clusters. +k8s:deepcopy-gen=package,register
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MachinePool ¶
type MachinePool struct { // ResourcePool is the name of the resource pool that will be used for virtual machines. // If it is not present, a default value will be used. // +optional ResourcePool string `json:"resourcePool,omitempty"` // NumCPUs is the total number of virtual processor cores to assign a vm. NumCPUs int32 `json:"cpus"` // NumCoresPerSocket is the number of cores per socket in a vm. The number // of vCPUs on the vm will be NumCPUs/NumCoresPerSocket. NumCoresPerSocket int32 `json:"coresPerSocket"` // Memory is the size of a VM's memory in MB. MemoryMiB int64 `json:"memoryMB"` // OSDisk defines the storage for instance. OSDisk `json:"osDisk"` }
MachinePool stores the configuration for a machine pool installed on vSphere.
func (*MachinePool) DeepCopy ¶
func (in *MachinePool) DeepCopy() *MachinePool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePool.
func (*MachinePool) DeepCopyInto ¶
func (in *MachinePool) DeepCopyInto(out *MachinePool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OSDisk ¶
type OSDisk struct { // DiskSizeGB defines the size of disk in GB. DiskSizeGB int32 `json:"diskSizeGB"` }
OSDisk defines the disk for a virtual machine.
func (*OSDisk) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSDisk.
func (*OSDisk) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Platform ¶
type Platform struct { // VCenter is the domain name or IP address of the vCenter. VCenter string `json:"vCenter"` // CredentialsSecretRef refers to a secret that contains the vSphere account access // credentials: GOVC_USERNAME, GOVC_PASSWORD fields. CredentialsSecretRef corev1.LocalObjectReference `json:"credentialsSecretRef"` // CertificatesSecretRef refers to a secret that contains the vSphere CA certificates // necessary for communicating with the VCenter. CertificatesSecretRef corev1.LocalObjectReference `json:"certificatesSecretRef"` // Datacenter is the name of the datacenter to use in the vCenter. Datacenter string `json:"datacenter"` // DefaultDatastore is the default datastore to use for provisioning volumes. DefaultDatastore string `json:"defaultDatastore"` // Folder is the name of the folder that will be used and/or created for // virtual machines. Folder string `json:"folder,omitempty"` // Cluster is the name of the cluster virtual machines will be cloned into. Cluster string `json:"cluster,omitempty"` // Network specifies the name of the network to be used by the cluster. Network string `json:"network,omitempty"` }
Platform stores any global configuration used for vSphere platforms.
func (*Platform) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Platform.
func (*Platform) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.