Documentation ¶
Overview ¶
Package gcp generates Machine objects for gcp.
Package gcp generates Machine objects for gcp.
Package gcp generates Machine objects for gcp.
Index ¶
- func AvailabilityZones(project, region string) ([]string, error)
- func ConfigMasters(machines []machineapi.Machine, controlPlane *machinev1.ControlPlaneMachineSet, ...) error
- func GenerateBootstrapMachines(name string, installConfig *installconfig.InstallConfig, infraID string, ...) ([]*asset.RuntimeFile, error)
- func GenerateMachines(installConfig *installconfig.InstallConfig, infraID string, ...) ([]*asset.RuntimeFile, error)
- func MachineSets(clusterID string, config *types.InstallConfig, pool *types.MachinePool, ...) ([]*machineapi.MachineSet, error)
- func Machines(clusterID string, config *types.InstallConfig, pool *types.MachinePool, ...) ([]machineapi.Machine, *machinev1.ControlPlaneMachineSet, error)
- func ZonesForInstanceType(project, region, instanceType string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailabilityZones ¶
AvailabilityZones retrieves a list of availability zones for the given project and region.
func ConfigMasters ¶
func ConfigMasters(machines []machineapi.Machine, controlPlane *machinev1.ControlPlaneMachineSet, clusterID string, publish types.PublishingStrategy) error
ConfigMasters assigns a set of load balancers to the given machines
func GenerateBootstrapMachines ¶ added in v0.90.0
func GenerateBootstrapMachines(name string, installConfig *installconfig.InstallConfig, infraID string, pool *types.MachinePool, imageName string) ([]*asset.RuntimeFile, error)
GenerateBootstrapMachines returns a manifest and runtime object for a bootstrap node using CAPI.
func GenerateMachines ¶ added in v0.90.0
func GenerateMachines(installConfig *installconfig.InstallConfig, infraID string, pool *types.MachinePool, imageName string) ([]*asset.RuntimeFile, error)
GenerateMachines returns manifests and runtime objects to provision control plane nodes using CAPI.
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 Machines ¶
func Machines(clusterID string, config *types.InstallConfig, pool *types.MachinePool, osImage, role, userDataSecret string) ([]machineapi.Machine, *machinev1.ControlPlaneMachineSet, error)
Machines returns a list of machines for a machinepool.
func ZonesForInstanceType ¶ added in v0.9.153
ZonesForInstanceType retrieves a filtered list of availability zones where the particular instance type is available. This is mainly necessary for arm64, since the instance t2a-standard-* is not available in all availability zones.
Types ¶
This section is empty.