gcp

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 26 Imported by: 3

Documentation

Overview

Package gcp generates Machine objects for gcp.

Package gcp generates Machine objects for gcp.

Package gcp generates Machine objects for gcp.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailabilityZones

func AvailabilityZones(project, region string) ([]string, error)

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

func ZonesForInstanceType(project, region, instanceType string) ([]string, error)

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.

Jump to

Keyboard shortcuts

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