Documentation ¶
Index ¶
- type ControlPlaneEndpointService
- type NetworkProvider
- type ResourcePolicyService
- type VSphereMachineService
- type VimMachineService
- func (v *VimMachineService) FetchVSphereCluster(c client.Client, cluster *clusterv1.Cluster, ...) (context.MachineContext, error)
- func (v *VimMachineService) FetchVSphereMachine(c client.Client, name types.NamespacedName) (context.MachineContext, error)
- func (v *VimMachineService) ReconcileDelete(c context.MachineContext) error
- func (v *VimMachineService) ReconcileNormal(c context.MachineContext) (bool, error)
- func (v *VimMachineService) SyncFailureReason(c context.MachineContext) (bool, error)
- type VirtualMachineService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlPlaneEndpointService ¶ added in v1.1.0
type ControlPlaneEndpointService interface { // ReconcileControlPlaneEndpointService manages the lifecycle of a // control plane endpoint managed by a vmoperator VirtualMachineService ReconcileControlPlaneEndpointService(ctx *vmware.ClusterContext, netProvider NetworkProvider) (*clusterv1.APIEndpoint, error) }
ControlPlaneEndpointService is a service for reconciling load balanced control plane endpoints
type NetworkProvider ¶ added in v1.1.0
type NetworkProvider interface { // HasLoadBalancer indicates whether this provider has a load balancer for Services. HasLoadBalancer() bool // ProvisionClusterNetwork creates network resource for a given cluster // This operation should be idempotent ProvisionClusterNetwork(ctx *vmware.ClusterContext) error // GetClusterNetworkName returns the name of a valid cluster network if one exists // Returns an empty string if the operation is not supported GetClusterNetworkName(ctx *vmware.ClusterContext) (string, error) // GetServiceAnnotations returns the annotations, if any, to place on a VM Service. GetVMServiceAnnotations(ctx *vmware.ClusterContext) (map[string]string, error) // ConfigureVirtualMachine configures a VM for the particular network ConfigureVirtualMachine(ctx *vmware.ClusterContext, vm *vmoprv1.VirtualMachine) error // Verify the status of the network after vnet creation VerifyNetworkStatus(ctx *vmware.ClusterContext, obj runtime.Object) error }
NetworkProvider provision network resources and configures VM based on network type
type ResourcePolicyService ¶ added in v1.1.0
type ResourcePolicyService interface { // ReconcileResourcePolicy ensures that a VirtualMachineSetResourcePolicy exists for the cluster // Returns the name of a policy if it exists, otherwise returns an error ReconcileResourcePolicy(ctx *vmware.ClusterContext) (string, error) }
ResourcePolicyService is a service for reconciling a VirtualMachineSetResourcePolicy for a cluster
type VSphereMachineService ¶ added in v1.1.0
type VSphereMachineService interface { FetchVSphereMachine(client client.Client, name types.NamespacedName) (context.MachineContext, error) FetchVSphereCluster(client client.Client, cluster *clusterv1.Cluster, controllerContext *context.ControllerContext, machineContext context.MachineContext) (context.MachineContext, error) ReconcileDelete(ctx context.MachineContext) error SyncFailureReason(ctx context.MachineContext) (bool, error) ReconcileNormal(ctx context.MachineContext) (bool, error) }
VSphereMachineService is used for vsphere VM lifecycle and syncing with VSphereMachine types.
type VimMachineService ¶ added in v1.1.0
type VimMachineService struct{}
func (*VimMachineService) FetchVSphereCluster ¶ added in v1.1.0
func (v *VimMachineService) FetchVSphereCluster(c client.Client, cluster *clusterv1.Cluster, controllerContext *context.ControllerContext, machineContext context.MachineContext) (context.MachineContext, error)
func (*VimMachineService) FetchVSphereMachine ¶ added in v1.1.0
func (v *VimMachineService) FetchVSphereMachine(c client.Client, name types.NamespacedName) (context.MachineContext, error)
func (*VimMachineService) ReconcileDelete ¶ added in v1.1.0
func (v *VimMachineService) ReconcileDelete(c context.MachineContext) error
func (*VimMachineService) ReconcileNormal ¶ added in v1.1.0
func (v *VimMachineService) ReconcileNormal(c context.MachineContext) (bool, error)
func (*VimMachineService) SyncFailureReason ¶ added in v1.1.0
func (v *VimMachineService) SyncFailureReason(c context.MachineContext) (bool, error)
type VirtualMachineService ¶
type VirtualMachineService interface { // ReconcileVM reconciles a VM with the intended state. ReconcileVM(ctx *context.VMContext) (infrav1.VirtualMachine, error) // DestroyVM powers off and removes a VM from the inventory. DestroyVM(ctx *context.VMContext) (infrav1.VirtualMachine, error) }
VirtualMachineService is a service for creating/updating/deleting virtual machines on vSphere.
Click to show internal directories.
Click to hide internal directories.