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: 18 Imported by: 1

Documentation

Index

Constants

View Source
const BootstrapSSHDescription = "Bootstrap SSH Access"

BootstrapSSHDescription is the description for the ingress rule that provides SSH access to the bootstrap node & identifies the rule for removal during bootstrap destroy.

Variables

This section is empty.

Functions

func GenerateClusterAssets added in v0.9.153

GenerateClusterAssets generates the manifests for the cluster-api.

func GetIgnitionBucketName added in v0.90.0

func GetIgnitionBucketName(infraID string) string

GetIgnitionBucketName returns the name of the bucket for the given cluster.

Types

type ClusterCSIDriverConfig

type ClusterCSIDriverConfig struct {
	KMSKeyARN string
}

ClusterCSIDriverConfig is the AWS config for the cluster CSI driver.

func (ClusterCSIDriverConfig) YAML

func (params ClusterCSIDriverConfig) YAML() ([]byte, error)

YAML generates the cluster CSI driver config for the AWS platform.

type ZonesCAPI added in v0.90.0

type ZonesCAPI struct {
	ControlPlaneZones sets.Set[string]
	ComputeZones      sets.Set[string]
	EdgeZones         sets.Set[string]
}

ZonesCAPI handles the discovered zones used to create subnets to CAPA. ZonesCAPI is scoped in this package, but exported to use complex scenarios with go-cmp on unit tests.

func (*ZonesCAPI) GetAvailabilityZones added in v0.90.0

func (zo *ZonesCAPI) GetAvailabilityZones() []string

GetAvailabilityZones returns a sorted union of Availability Zones defined in the zone attribute in the pools for control plane and compute.

func (*ZonesCAPI) GetEdgeZones added in v0.90.0

func (zo *ZonesCAPI) GetEdgeZones() []string

GetEdgeZones returns a sorted union of Local Zones or Wavelength Zones defined in the zone attribute in the edge compute pool.

func (*ZonesCAPI) SetAvailabilityZones added in v0.90.0

func (zo *ZonesCAPI) SetAvailabilityZones(pool string, zones []string)

SetAvailabilityZones insert the zone to the given compute pool, and to the regular zone (zone type availability-zone) list.

func (*ZonesCAPI) SetDefaultConfigZones added in v0.90.0

func (zo *ZonesCAPI) SetDefaultConfigZones(pool string, defConfig []string, defRegion []string)

SetDefaultConfigZones evaluates if machine pools (control plane and workers) have been set the zones from install-config.yaml, if not sets the default from platform, when exists, otherwise set the default from the region discovered from AWS API.

Jump to

Keyboard shortcuts

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