Documentation ¶
Index ¶
- func CleanupNetworkInterfaces(ec2API ec2iface.EC2API, spec *api.ClusterConfig) error
- func Import(provider api.ClusterProvider, spec *api.ClusterConfig, id string) error
- func ImportAllSubnets(provider api.ClusterProvider, spec *api.ClusterConfig) error
- func ImportSubnets(provider api.ClusterProvider, spec *api.ClusterConfig, ...) error
- func ImportSubnetsFromList(provider api.ClusterProvider, spec *api.ClusterConfig, ...) error
- func SetSubnets(spec *api.ClusterConfig) error
- func UseFromCluster(provider api.ClusterProvider, stack *cfn.Stack, spec *api.ClusterConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupNetworkInterfaces ¶
func CleanupNetworkInterfaces(ec2API ec2iface.EC2API, spec *api.ClusterConfig) error
CleanupNetworkInterfaces finds and deletes any dangling ENIs
func Import ¶
func Import(provider api.ClusterProvider, spec *api.ClusterConfig, id string) error
Import will update spec with VPC ID/CIDR NOTE: it does respect all fields set in spec.VPC, and will error if there is a mismatch of local vs remote states
func ImportAllSubnets ¶
func ImportAllSubnets(provider api.ClusterProvider, spec *api.ClusterConfig) error
ImportAllSubnets will update spec with subnets, it will call describeSubnets first, then pass resulting subnets to ImportSubnets NOTE: it does respect all fields set in spec.VPC, and will error if there is a mismatch of local vs remote states
func ImportSubnets ¶
func ImportSubnets(provider api.ClusterProvider, spec *api.ClusterConfig, topology api.SubnetTopology, subnets []*ec2.Subnet) error
ImportSubnets will update spec with subnets, if VPC ID/CIDR is unknown it will use provider to call describeVPC based on the VPC ID of the first subnet; all subnets must be in the same VPC NOTE: it does respect all fields set in spec.VPC, and will error if there is a mismatch of local vs remote states
func ImportSubnetsFromList ¶
func ImportSubnetsFromList(provider api.ClusterProvider, spec *api.ClusterConfig, topology api.SubnetTopology, subnetIDs []string) error
ImportSubnetsFromList will update spec with subnets, it will call describeSubnets first, then pass resulting subnets to ImportSubnets NOTE: it does respect all fields set in spec.VPC, and will error if there is a mismatch of local vs remote states
func SetSubnets ¶
func SetSubnets(spec *api.ClusterConfig) error
SetSubnets defines CIDRs for each of the subnets, it must be called after SetAvailabilityZones
func UseFromCluster ¶
func UseFromCluster(provider api.ClusterProvider, stack *cfn.Stack, spec *api.ClusterConfig) error
UseFromCluster retrieves the VPC configuration from an existing cluster based on stack outputs NOTE: it doesn't expect any fields in spec.VPC to be set, the remote state is treated as the source of truth
Types ¶
This section is empty.