integration

package
v1.59.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoute added in v1.59.0

func AddRoute(ctx context.Context, awsClient *awsclient.Client, vpcID, gatewayID, myIpCidr string) error

AddRoute adds a route for the default vpc route table with myIpCidr as destination

func CreateSecurityGroup

func CreateSecurityGroup(ctx context.Context, awsClient *awsclient.Client, groupName string, vpcID string) (string, error)

CreateSecurityGroup creates a new security group.

func CreateSubnet

func CreateSubnet(ctx context.Context, log logr.Logger, awsClient *awsclient.Client, vpcID string, cidr string, name string) (string, error)

CreateSubnet creates a new subnet and waits for it to become available.

func CreateVPC

func CreateVPC(ctx context.Context, log logr.Logger, awsClient *awsclient.Client, vpcCIDR string, enableDnsHostnames, dualstack bool, egressOnlyIG bool) (string, string, string, error)

CreateVPC creates a new VPC and waits for it to become available. It returns the VPC ID, the Internet Gateway ID or an error in case something unexpected happens.

func DestroySecurityGroup

func DestroySecurityGroup(ctx context.Context, _ logr.Logger, awsClient *awsclient.Client, securityGroupID string) error

DestroySecurityGroup deletes an existing security group.

func DestroySubnet

func DestroySubnet(ctx context.Context, _ logr.Logger, awsClient *awsclient.Client, subnetID string) error

DestroySubnet deletes an existing subnet.

func DestroyVPC

func DestroyVPC(ctx context.Context, log logr.Logger, awsClient *awsclient.Client, vpcID string) error

DestroyVPC deletes the Internet Gateway and the VPC itself.

func EqualInfrastructureStatus added in v1.44.0

func EqualInfrastructureStatus(expected *v1alpha1.InfrastructureStatus) gomegatypes.GomegaMatcher

EqualInfrastructureStatus is a gomega matcher that allows comparison between InfrastructureStatus'es after sorting slices or other fields that could fail a DeepEqual check.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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