Documentation ¶
Index ¶
- func AddRoute(ctx context.Context, awsClient *awsclient.Client, ...) error
- func CreateSecurityGroup(ctx context.Context, awsClient *awsclient.Client, groupName string, ...) (string, error)
- func CreateSubnet(ctx context.Context, log logr.Logger, awsClient *awsclient.Client, ...) (string, error)
- func CreateVPC(ctx context.Context, log logr.Logger, awsClient *awsclient.Client, ...) (string, string, string, error)
- func DestroySecurityGroup(ctx context.Context, _ logr.Logger, awsClient *awsclient.Client, ...) error
- func DestroySubnet(ctx context.Context, _ logr.Logger, awsClient *awsclient.Client, ...) error
- func DestroyVPC(ctx context.Context, log logr.Logger, awsClient *awsclient.Client, ...) error
- func EqualInfrastructureStatus(expected *v1alpha1.InfrastructureStatus) gomegatypes.GomegaMatcher
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.