Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the vcsim API group +kubebuilder:object:generate=true +groupName=vcsim.infrastructure.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- type ClusterEnvVarSpec
- type ContentLibraryConfig
- type ContentLibraryItemConfig
- type ContentLibraryItemFilesConfig
- type ControlPlaneEndpoint
- type ControlPlaneEndpointList
- type ControlPlaneEndpointSpec
- type ControlPlaneEndpointStatus
- type EnvVar
- type EnvVarList
- type EnvVarSpec
- type EnvVarStatus
- type NamespacedRef
- type StorageClass
- type VCenterSimulator
- type VCenterSimulatorList
- type VCenterSimulatorModel
- type VCenterSimulatorSpec
- type VCenterSimulatorStatus
- type VCenterSpec
- type VMOperatorDependencies
- func (in *VMOperatorDependencies) DeepCopy() *VMOperatorDependencies
- func (in *VMOperatorDependencies) DeepCopyInto(out *VMOperatorDependencies)
- func (in *VMOperatorDependencies) DeepCopyObject() runtime.Object
- func (d *VMOperatorDependencies) SetVCenterFromVCenterSimulator(vCenterSimulator *VCenterSimulator)
- type VMOperatorDependenciesList
- type VMOperatorDependenciesSpec
- type VMOperatorDependenciesStatus
- type VMOperatorRef
- type VirtualMachineClass
Constants ¶
const ( // Version is the API version. Version = "v1alpha1" // GroupName is the name of the API group. GroupName = "vcsim.infrastructure.cluster.x-k8s.io" )
const ( // VCenterFinalizer allows VCenterReconciler to clean up resources associated with VCenter before // removing it from the API server. VCenterFinalizer = "vcenter.vcsim.infrastructure.cluster.x-k8s.io" // VMFinalizer allows this reconciler to cleanup resources before removing the // VSphereVM from the API Server. VMFinalizer = "vcsim.fake.infrastructure.cluster.x-k8s.io" )
const ( // ControlPlaneEndpointFinalizer allows ControlPlaneEndpointReconciler to clean up resources associated with ControlPlaneEndpoint before // removing it from the API server. ControlPlaneEndpointFinalizer = "control-plane-endpoint.vcsim.infrastructure.cluster.x-k8s.io" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: GroupName, Version: Version} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = schemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type ClusterEnvVarSpec ¶
type ClusterEnvVarSpec struct { // The name of the Cluster API cluster. Name string `json:"name"` // The namespace of the Cluster API cluster. Namespace string `json:"namespace"` // The Kubernetes version of the Cluster API cluster. // NOTE: This variable isn't related to the vcsim controller, but we are handling it here // in order to have a single point of control for all the variables related to a Cluster API template. // Default: v1.28.0 KubernetesVersion *string `json:"kubernetesVersion,omitempty"` // The number of the control plane machines in the Cluster API cluster. // NOTE: This variable isn't related to the vcsim controller, but we are handling it here // in order to have a single point of control for all the variables related to a Cluster API template. // Default: 1 ControlPlaneMachines *int32 `json:"controlPlaneMachines,omitempty"` // The number of the worker machines in the Cluster API cluster. // NOTE: This variable isn't related to the vcsim controller, but we are handling it here // in order to have a single point of control for all the variables related to a Cluster API template. // Default: 1 WorkerMachines *int32 `json:"workerMachines,omitempty"` // Datacenter specifies the Datacenter for the Cluster API cluster. // Default: 0 (DC0) Datacenter *int32 `json:"datacenter,omitempty"` // Cluster specifies the VCenter Cluster for the Cluster API cluster. // Default: 0 (C0) Cluster *int32 `json:"cluster,omitempty"` // Datastore specifies the Datastore for the Cluster API cluster. // Default: 0 (LocalDS_0) Datastore *int32 `json:"datastore,omitempty"` // The PowerOffMode for the machines in the cluster. // Default: trySoft PowerOffMode *string `json:"powerOffMode,omitempty"` }
ClusterEnvVarSpec defines the spec for the EnvVar generator targeting a specific Cluster API cluster.
func (*ClusterEnvVarSpec) DeepCopy ¶
func (in *ClusterEnvVarSpec) DeepCopy() *ClusterEnvVarSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterEnvVarSpec.
func (*ClusterEnvVarSpec) DeepCopyInto ¶
func (in *ClusterEnvVarSpec) DeepCopyInto(out *ClusterEnvVarSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentLibraryConfig ¶
type ContentLibraryConfig struct { Name string `json:"name,omitempty"` Datastore string `json:"datastore,omitempty"` Items []ContentLibraryItemConfig `json:"items,omitempty"` }
func (*ContentLibraryConfig) DeepCopy ¶
func (in *ContentLibraryConfig) DeepCopy() *ContentLibraryConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibraryConfig.
func (*ContentLibraryConfig) DeepCopyInto ¶
func (in *ContentLibraryConfig) DeepCopyInto(out *ContentLibraryConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentLibraryItemConfig ¶
type ContentLibraryItemConfig struct { Name string `json:"datacenter,omitempty"` Files []ContentLibraryItemFilesConfig `json:"files,omitempty"` ItemType string `json:"itemType,omitempty"` ProductInfo string `json:"productInfo,omitempty"` OSInfo string `json:"osInfo,omitempty"` }
func (*ContentLibraryItemConfig) DeepCopy ¶
func (in *ContentLibraryItemConfig) DeepCopy() *ContentLibraryItemConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibraryItemConfig.
func (*ContentLibraryItemConfig) DeepCopyInto ¶
func (in *ContentLibraryItemConfig) DeepCopyInto(out *ContentLibraryItemConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContentLibraryItemFilesConfig ¶
type ContentLibraryItemFilesConfig struct { Name string `json:"name,omitempty"` Content []byte `json:"content,omitempty"` }
func (*ContentLibraryItemFilesConfig) DeepCopy ¶
func (in *ContentLibraryItemFilesConfig) DeepCopy() *ContentLibraryItemFilesConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContentLibraryItemFilesConfig.
func (*ContentLibraryItemFilesConfig) DeepCopyInto ¶
func (in *ContentLibraryItemFilesConfig) DeepCopyInto(out *ContentLibraryItemFilesConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControlPlaneEndpoint ¶
type ControlPlaneEndpoint struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ControlPlaneEndpointSpec `json:"spec,omitempty"` Status ControlPlaneEndpointStatus `json:"status,omitempty"` }
ControlPlaneEndpoint is the schema for a cluster virtual ip. IMPORTANT: The name of the ControlPlaneEndpoint should match the name of the cluster.
func (*ControlPlaneEndpoint) DeepCopy ¶
func (in *ControlPlaneEndpoint) DeepCopy() *ControlPlaneEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneEndpoint.
func (*ControlPlaneEndpoint) DeepCopyInto ¶
func (in *ControlPlaneEndpoint) DeepCopyInto(out *ControlPlaneEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ControlPlaneEndpoint) DeepCopyObject ¶
func (in *ControlPlaneEndpoint) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ControlPlaneEndpointList ¶
type ControlPlaneEndpointList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ControlPlaneEndpoint `json:"items"` }
ControlPlaneEndpointList contains a list of ControlPlaneEndpoint.
func (*ControlPlaneEndpointList) DeepCopy ¶
func (in *ControlPlaneEndpointList) DeepCopy() *ControlPlaneEndpointList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneEndpointList.
func (*ControlPlaneEndpointList) DeepCopyInto ¶
func (in *ControlPlaneEndpointList) DeepCopyInto(out *ControlPlaneEndpointList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ControlPlaneEndpointList) DeepCopyObject ¶
func (in *ControlPlaneEndpointList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ControlPlaneEndpointSpec ¶
type ControlPlaneEndpointSpec struct { }
ControlPlaneEndpointSpec defines the desired state of the ControlPlaneEndpoint.
func (*ControlPlaneEndpointSpec) DeepCopy ¶
func (in *ControlPlaneEndpointSpec) DeepCopy() *ControlPlaneEndpointSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneEndpointSpec.
func (*ControlPlaneEndpointSpec) DeepCopyInto ¶
func (in *ControlPlaneEndpointSpec) DeepCopyInto(out *ControlPlaneEndpointSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControlPlaneEndpointStatus ¶
type ControlPlaneEndpointStatus struct { // The control plane host. Host string `json:"host,omitempty"` // The control plane port. Port int32 `json:"port,omitempty"` }
ControlPlaneEndpointStatus defines the observed state of the ControlPlaneEndpoint.
func (*ControlPlaneEndpointStatus) DeepCopy ¶
func (in *ControlPlaneEndpointStatus) DeepCopy() *ControlPlaneEndpointStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneEndpointStatus.
func (*ControlPlaneEndpointStatus) DeepCopyInto ¶
func (in *ControlPlaneEndpointStatus) DeepCopyInto(out *ControlPlaneEndpointStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvVar ¶
type EnvVar struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EnvVarSpec `json:"spec,omitempty"` Status EnvVarStatus `json:"status,omitempty"` }
EnvVar is the schema for a EnvVar generator.
func (*EnvVar) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar.
func (*EnvVar) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EnvVar) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EnvVarList ¶
type EnvVarList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []EnvVar `json:"items"` }
EnvVarList contains a list of EnvVar.
func (*EnvVarList) DeepCopy ¶
func (in *EnvVarList) DeepCopy() *EnvVarList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVarList.
func (*EnvVarList) DeepCopyInto ¶
func (in *EnvVarList) DeepCopyInto(out *EnvVarList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EnvVarList) DeepCopyObject ¶
func (in *EnvVarList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EnvVarSpec ¶
type EnvVarSpec struct { // Name of the VCenterSimulator instance to use as source for EnvVar values. VCenterSimulator *NamespacedRef `json:"vCenterSimulator,omitempty"` // Name of the ControlPlaneEndpoint instance to use as source for EnvVar values. ControlPlaneEndpoint NamespacedRef `json:"controlPlaneEndpoint,omitempty"` // Cluster specific values to use as source for EnvVar values. Cluster ClusterEnvVarSpec `json:"cluster,omitempty"` // Name of the VMOperatorDependencies instance to use as source for EnvVar values. // If not specified, a default dependenciesConfig that works for vcsim is used. // NOTE: this is required only for supervisor mode; also: // - the system automatically picks the first StorageClass defined in the VMOperatorDependencies // - the system automatically picks the first VirtualMachine class defined in the VMOperatorDependencies // - the system automatically picks the first Image from the content library defined in the VMOperatorDependencies VMOperatorDependencies *NamespacedRef `json:"vmOperatorDependencies,omitempty"` }
EnvVarSpec defines the desired state of the EnvVar.
func (*EnvVarSpec) DeepCopy ¶
func (in *EnvVarSpec) DeepCopy() *EnvVarSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVarSpec.
func (*EnvVarSpec) DeepCopyInto ¶
func (in *EnvVarSpec) DeepCopyInto(out *EnvVarSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvVarStatus ¶
type EnvVarStatus struct { // variables to use when creating the Cluster API cluster. Variables map[string]string `json:"variables,omitempty"` }
EnvVarStatus defines the observed state of the EnvVar.
func (*EnvVarStatus) DeepCopy ¶
func (in *EnvVarStatus) DeepCopy() *EnvVarStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVarStatus.
func (*EnvVarStatus) DeepCopyInto ¶
func (in *EnvVarStatus) DeepCopyInto(out *EnvVarStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespacedRef ¶
type NamespacedRef struct { // Namespace of the referenced object. // If empty, it defaults to the namespace of the parent object. Namespace string `json:"namespace,omitempty"` // Name of the referenced object. Name string `json:"name,omitempty"` }
NamespacedRef defines a reference to an object of a well known API Group and kind.
func (*NamespacedRef) DeepCopy ¶
func (in *NamespacedRef) DeepCopy() *NamespacedRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedRef.
func (*NamespacedRef) DeepCopyInto ¶
func (in *NamespacedRef) DeepCopyInto(out *NamespacedRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageClass ¶
type StorageClass struct { Name string `json:"name,omitempty"` StoragePolicy string `json:"storagePolicy,omitempty"` }
func (*StorageClass) DeepCopy ¶
func (in *StorageClass) DeepCopy() *StorageClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass.
func (*StorageClass) DeepCopyInto ¶
func (in *StorageClass) DeepCopyInto(out *StorageClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VCenterSimulator ¶
type VCenterSimulator struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VCenterSimulatorSpec `json:"spec,omitempty"` Status VCenterSimulatorStatus `json:"status,omitempty"` }
VCenterSimulator is the schema for a VCenter simulator server.
func (*VCenterSimulator) DeepCopy ¶
func (in *VCenterSimulator) DeepCopy() *VCenterSimulator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VCenterSimulator.
func (*VCenterSimulator) DeepCopyInto ¶
func (in *VCenterSimulator) DeepCopyInto(out *VCenterSimulator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VCenterSimulator) DeepCopyObject ¶
func (in *VCenterSimulator) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VCenterSimulatorList ¶
type VCenterSimulatorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VCenterSimulator `json:"items"` }
VCenterSimulatorList contains a list of VCenterSimulator.
func (*VCenterSimulatorList) DeepCopy ¶
func (in *VCenterSimulatorList) DeepCopy() *VCenterSimulatorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VCenterSimulatorList.
func (*VCenterSimulatorList) DeepCopyInto ¶
func (in *VCenterSimulatorList) DeepCopyInto(out *VCenterSimulatorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VCenterSimulatorList) DeepCopyObject ¶
func (in *VCenterSimulatorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VCenterSimulatorModel ¶
type VCenterSimulatorModel struct { // VSphereVersion specifies the VSphere version to use // Default: 7.0.0 (the minimal vCenter version required by CAPV, vcsim default is 6.5) VSphereVersion *string `json:"vsphereVersion,omitempty"` // Datacenter specifies the number of Datacenter entities to create // Name prefix: DC, vcsim flag: -dc // Default: 1 Datacenter *int32 `json:"datacenter,omitempty"` // Cluster specifies the number of ClusterComputeResource entities to create per Datacenter // Name prefix: C, vcsim flag: -cluster // Default: 1 Cluster *int32 `json:"cluster,omitempty"` // ClusterHost specifies the number of HostSystems entities to create within a Cluster // Name prefix: H, vcsim flag: -host // Default: 3 ClusterHost *int32 `json:"clusterHost,omitempty"` // Pool specifies the number of ResourcePool entities to create per Cluster // Note that every cluster has a root ResourcePool named "Resources", as real vCenter does. // For example: /DC0/host/DC0_C0/Resources // The root ResourcePool is named "RP0" within other object names. // When Model.Pool is set to 1 or higher, this creates child ResourcePools under the root pool. // Note that this flag is not effective on standalone hosts (ESXi without vCenter). // For example: /DC0/host/DC0_C0/Resources/DC0_C0_RP1 // Name prefix: RP, vcsim flag: -pool // Default: 0 // TODO: model pool selection for each cluster; for now ResourcePool named "Resources" will be always used // but ideally we should use RPx as per documentation above. Pool *int32 `json:"pool,omitempty"` // Datastore specifies the number of Datastore entities to create // Each Datastore will have temporary local file storage and will be mounted // on every HostSystem created by the ModelConfig // Name prefix: LocalDS, vcsim flag: -ds // Default: 1 Datastore *int32 `json:"datastore,omitempty"` }
VCenterSimulatorModel defines the model to be used by the VCenterSimulator.
func (*VCenterSimulatorModel) DeepCopy ¶
func (in *VCenterSimulatorModel) DeepCopy() *VCenterSimulatorModel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VCenterSimulatorModel.
func (*VCenterSimulatorModel) DeepCopyInto ¶
func (in *VCenterSimulatorModel) DeepCopyInto(out *VCenterSimulatorModel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VCenterSimulatorSpec ¶
type VCenterSimulatorSpec struct {
Model *VCenterSimulatorModel `json:"model,omitempty"`
}
VCenterSimulatorSpec defines the desired state of the VCenterSimulator.
func (*VCenterSimulatorSpec) DeepCopy ¶
func (in *VCenterSimulatorSpec) DeepCopy() *VCenterSimulatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VCenterSimulatorSpec.
func (*VCenterSimulatorSpec) DeepCopyInto ¶
func (in *VCenterSimulatorSpec) DeepCopyInto(out *VCenterSimulatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VCenterSimulatorStatus ¶
type VCenterSimulatorStatus struct { // The vcsim server url's host. Host string `json:"host,omitempty"` // The vcsim server username. Username string `json:"username,omitempty"` // The vcsim server password. Password string `json:"password,omitempty"` // The vcsim server thumbprint. Thumbprint string `json:"thumbprint,omitempty"` }
VCenterSimulatorStatus defines the observed state of the VCenterSimulator.
func (*VCenterSimulatorStatus) DeepCopy ¶
func (in *VCenterSimulatorStatus) DeepCopy() *VCenterSimulatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VCenterSimulatorStatus.
func (*VCenterSimulatorStatus) DeepCopyInto ¶
func (in *VCenterSimulatorStatus) DeepCopyInto(out *VCenterSimulatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VCenterSpec ¶
type VCenterSpec struct { ServerURL string `json:"serverURL,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` Thumbprint string `json:"thumbprint,omitempty"` // supervisor is based on a single vCenter cluster Datacenter string `json:"datacenter,omitempty"` Cluster string `json:"cluster,omitempty"` Folder string `json:"folder,omitempty"` ResourcePool string `json:"resourcePool,omitempty"` ContentLibrary ContentLibraryConfig `json:"contentLibrary,omitempty"` DistributedPortGroupName string `json:"distributedPortGroupName,omitempty"` }
VCenterSpec defines info about the vCenter instance that the vm-operator interacts with.
func (*VCenterSpec) DeepCopy ¶
func (in *VCenterSpec) DeepCopy() *VCenterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VCenterSpec.
func (*VCenterSpec) DeepCopyInto ¶
func (in *VCenterSpec) DeepCopyInto(out *VCenterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VMOperatorDependencies ¶
type VMOperatorDependencies struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VMOperatorDependenciesSpec `json:"spec,omitempty"` Status VMOperatorDependenciesStatus `json:"status,omitempty"` }
VMOperatorDependencies is the schema for a VM operator dependencies.
func (*VMOperatorDependencies) DeepCopy ¶
func (in *VMOperatorDependencies) DeepCopy() *VMOperatorDependencies
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMOperatorDependencies.
func (*VMOperatorDependencies) DeepCopyInto ¶
func (in *VMOperatorDependencies) DeepCopyInto(out *VMOperatorDependencies)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VMOperatorDependencies) DeepCopyObject ¶
func (in *VMOperatorDependencies) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VMOperatorDependencies) SetVCenterFromVCenterSimulator ¶
func (d *VMOperatorDependencies) SetVCenterFromVCenterSimulator(vCenterSimulator *VCenterSimulator)
SetVCenterFromVCenterSimulator sets config.Spec.VCenter for a given VCenterSimulator. NOTE: by default it uses cluster DC0/C0, datastore LocalDS_0 in vcsim; it also sets up a content library with the templates that are expected by test cluster classes.
type VMOperatorDependenciesList ¶
type VMOperatorDependenciesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VCenterSimulator `json:"items"` }
VMOperatorDependenciesList contains a list of VMOperatorDependencies.
func (*VMOperatorDependenciesList) DeepCopy ¶
func (in *VMOperatorDependenciesList) DeepCopy() *VMOperatorDependenciesList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMOperatorDependenciesList.
func (*VMOperatorDependenciesList) DeepCopyInto ¶
func (in *VMOperatorDependenciesList) DeepCopyInto(out *VMOperatorDependenciesList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VMOperatorDependenciesList) DeepCopyObject ¶
func (in *VMOperatorDependenciesList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VMOperatorDependenciesSpec ¶
type VMOperatorDependenciesSpec struct { // OperatorRef provides a reference to the running instance of vm-operator. OperatorRef *VMOperatorRef `json:"operatorRef,omitempty"` // VCenter defines info about the vCenter instance that the vm-operator interacts with. // Only one between this field and VCenterSimulatorRef must be set. VCenter *VCenterSpec `json:"vCenter,omitempty"` // VCenterSimulatorRef defines info about the vCenter simulator instance that the vm-operator interacts with. // Only one between this field and VCenter must be set. VCenterSimulatorRef *NamespacedRef `json:"vCenterSimulatorRef,omitempty"` // StorageClasses defines a list of StorageClasses to be bound to the namespace where this object is created. StorageClasses []StorageClass `json:"storageClasses,omitempty"` // VirtualMachineClasses defines a list of VirtualMachineClasses to be bound to the namespace where this object is created. VirtualMachineClasses []VirtualMachineClass `json:"virtualMachineClasses,omitempty"` }
VMOperatorDependenciesSpec defines the desired state of the VMOperatorDependencies in the namespace where this object is created.
func (*VMOperatorDependenciesSpec) DeepCopy ¶
func (in *VMOperatorDependenciesSpec) DeepCopy() *VMOperatorDependenciesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMOperatorDependenciesSpec.
func (*VMOperatorDependenciesSpec) DeepCopyInto ¶
func (in *VMOperatorDependenciesSpec) DeepCopyInto(out *VMOperatorDependenciesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VMOperatorDependenciesStatus ¶
type VMOperatorDependenciesStatus struct {
Ready bool `json:"ready,omitempty"`
}
VMOperatorDependenciesStatus defines the observed state of the VMOperatorDependencies.
func (*VMOperatorDependenciesStatus) DeepCopy ¶
func (in *VMOperatorDependenciesStatus) DeepCopy() *VMOperatorDependenciesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMOperatorDependenciesStatus.
func (*VMOperatorDependenciesStatus) DeepCopyInto ¶
func (in *VMOperatorDependenciesStatus) DeepCopyInto(out *VMOperatorDependenciesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VMOperatorRef ¶
type VMOperatorRef struct { // Namespace where the vm-operator is running. Namespace string `json:"namespace,omitempty"` }
VMOperatorRef provide a reference to the running instance of vm-operator.
func (*VMOperatorRef) DeepCopy ¶
func (in *VMOperatorRef) DeepCopy() *VMOperatorRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMOperatorRef.
func (*VMOperatorRef) DeepCopyInto ¶
func (in *VMOperatorRef) DeepCopyInto(out *VMOperatorRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachineClass ¶
type VirtualMachineClass struct { Name string `json:"name,omitempty"` Cpus int64 `json:"cpus,omitempty"` Memory resource.Quantity `json:"memory,omitempty"` }
func (*VirtualMachineClass) DeepCopy ¶
func (in *VirtualMachineClass) DeepCopy() *VirtualMachineClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineClass.
func (*VirtualMachineClass) DeepCopyInto ¶
func (in *VirtualMachineClass) DeepCopyInto(out *VirtualMachineClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.