vsphere

package
v0.90.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 25 Imported by: 3

Documentation

Overview

Package vsphere generates Machine objects for vsphere.

Package vsphere generates Machine objects for vsphere.package vsphere

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMasters

func ConfigMasters(machines []machineapi.Machine, clusterID string)

ConfigMasters sets the PublicIP flag and assigns a set of load balancers to the given machines

func GenerateMachines added in v0.90.0

func GenerateMachines(ctx context.Context, clusterID string, config *types.InstallConfig, pool *types.MachinePool, osImage string, role string, metadata *vsphere.Metadata) ([]*asset.RuntimeFile, error)

GenerateMachines returns a list of capi machines.

func MachineSets

func MachineSets(clusterID string, config *types.InstallConfig, pool *types.MachinePool, osImage, role, userDataSecret string) ([]*machineapi.MachineSet, error)

MachineSets returns a list of machinesets for a machinepool.

func ProviderSpecFromRawExtension added in v0.90.0

func ProviderSpecFromRawExtension(rawExtension *runtime.RawExtension) (*machinev1.VSphereMachineProviderSpec, error)

ProviderSpecFromRawExtension unmarshals the JSON-encoded spec.

Types

type MachineData added in v0.90.0

type MachineData struct {
	Machines               []machineapi.Machine
	ControlPlaneMachineSet *machinev1.ControlPlaneMachineSet
	IPClaims               []ipamv1.IPAddressClaim
	IPAddresses            []ipamv1.IPAddress
}

MachineData contains all result output from the Machines() function.

func Machines

func Machines(clusterID string, config *types.InstallConfig, pool *types.MachinePool, osImage, role, userDataSecret string) (*MachineData, error)

Machines returns a list of machines for a machinepool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL