aws

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: 27 Imported by: 40

Documentation

Overview

Package aws generates Machine objects for aws.

Package aws generates Machine objects for aws.

Package aws generates Machine objects for aws.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapaIgnitionWithCertBundleAndProxy added in v0.90.0

func CapaIgnitionWithCertBundleAndProxy(userCA string, proxy *types.Proxy) (*capa.Ignition, error)

CapaIgnitionWithCertBundleAndProxy generates CAPA ignition config with cert and proxy information.

func CapaTagsFromUserTags added in v0.9.153

func CapaTagsFromUserTags(clusterID string, usertags map[string]string) (capa.Tags, error)

CapaTagsFromUserTags converts a map of user tags to a map of capa.Tags.

func ConfigMasters added in v0.4.0

func ConfigMasters(machines []machineapi.Machine, controlPlane *machinev1.ControlPlaneMachineSet, clusterID string, publish types.PublishingStrategy)

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

func FilterZonesBasedOnInstanceType added in v0.9.2

func FilterZonesBasedOnInstanceType(ctx context.Context, meta *awsconfig.Metadata, instanceType string, zones []string) ([]string, error)

FilterZonesBasedOnInstanceType return a filtered list of zones where the particular instance type is available. This is mainly necessary for ARM, where the instance type m6g is not available in all availability zones.

func GenerateMachines added in v0.9.153

func GenerateMachines(clusterID string, in *MachineInput) ([]*asset.RuntimeFile, error)

GenerateMachines returns manifests and runtime objects to provision the control plane (including bootstrap, if applicable) nodes using CAPI.

func MachineSets added in v0.4.0

func MachineSets(in *MachineSetInput) ([]*machineapi.MachineSet, error)

MachineSets returns a list of machinesets for a machinepool.

func Machines added in v0.4.0

func Machines(clusterID string, region string, subnets map[string]string, pool *types.MachinePool, role, userDataSecret string, userTags map[string]string) ([]machineapi.Machine, *machinev1.ControlPlaneMachineSet, error)

Machines returns a list of machines for a machinepool.

func PreferredInstanceType added in v0.9.2

func PreferredInstanceType(ctx context.Context, meta *awsconfig.Metadata, types []string, zones []string) (string, error)

PreferredInstanceType returns a preferred instance type from the list of instance types provided in descending order of preference based on filters like the list of required availability zones.

Types

type MachineInput added in v0.90.0

type MachineInput struct {
	Role           string
	Pool           *types.MachinePool
	Subnets        map[string]string
	Tags           capa.Tags
	PublicIP       bool
	PublicIpv4Pool string
	Ignition       *capa.Ignition
}

MachineInput defines the inputs needed to generate a machine asset.

type MachineSetInput added in v0.9.153

type MachineSetInput struct {
	ClusterID                string
	InstallConfigPlatformAWS *aws.Platform
	Subnets                  icaws.Subnets
	Zones                    icaws.Zones
	Pool                     *types.MachinePool
	Role                     string
	UserDataSecret           string
}

MachineSetInput holds the input arguments required to MachineSets for a machinepool.

Jump to

Keyboard shortcuts

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