Documentation ¶
Index ¶
- func CleanupNetworkInterfaces(ec2API ec2iface.EC2API, spec *api.ClusterConfig) error
- func EnsureMapPublicIPOnLaunchEnabled(ec2API ec2iface.EC2API, subnetIDs []string) error
- func ImportSubnets(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api.SubnetTopology, ...) error
- func ImportSubnetsFromIDList(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api.SubnetTopology, ...) error
- func ImportSubnetsFromSpec(provider api.ClusterProvider, spec *api.ClusterConfig) error
- func SelectNodeGroupSubnets(nodegroupAZs, nodegroupSubnets []string, subnets api.AZSubnetMapping) ([]string, error)
- func SetSubnets(vpc *api.ClusterVPC, availabilityZones []string) error
- func SplitInto16(parent *net.IPNet) ([]*net.IPNet, error)
- func SplitInto8(parent *net.IPNet) ([]*net.IPNet, error)
- func UseEndpointAccessFromCluster(provider api.ClusterProvider, spec *api.ClusterConfig) error
- func UseFromCluster(provider api.ClusterProvider, stack *cfn.Stack, spec *api.ClusterConfig) error
- func ValidateExistingPublicSubnets(provider api.ClusterProvider, vpcID string, subnetIDs []string) error
- func ValidateLegacySubnetsForNodeGroups(spec *api.ClusterConfig, provider api.ClusterProvider) 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 EnsureMapPublicIPOnLaunchEnabled ¶
EnsureMapPublicIPOnLaunchEnabled will enable MapPublicIpOnLaunch in EC2 for all given subnet IDs
func ImportSubnets ¶
func ImportSubnets(ec2API ec2iface.EC2API, 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 ImportSubnetsFromIDList ¶ added in v0.39.0
func ImportSubnetsFromIDList(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api.SubnetTopology, subnetIDs []string) error
ImportSubnetsFromIDList will update spec with subnets _only specified by ID_ 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 ImportSubnetsFromSpec ¶ added in v0.39.0
func ImportSubnetsFromSpec(provider api.ClusterProvider, spec *api.ClusterConfig) error
ImportSubnetsFromSpec 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 SelectNodeGroupSubnets ¶
func SelectNodeGroupSubnets(nodegroupAZs, nodegroupSubnets []string, subnets api.AZSubnetMapping) ([]string, error)
func SetSubnets ¶
func SetSubnets(vpc *api.ClusterVPC, availabilityZones []string) error
SetSubnets defines CIDRs for each of the subnets, it must be called after SetAvailabilityZones
func UseEndpointAccessFromCluster ¶
func UseEndpointAccessFromCluster(provider api.ClusterProvider, spec *api.ClusterConfig) error
UseEndpointAccessFromCluster retrieves the Cluster's endpoint access configuration via the SDK as the CloudFormation Stack doesn't support that configuration currently
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
func ValidateExistingPublicSubnets ¶
func ValidateExistingPublicSubnets(provider api.ClusterProvider, vpcID string, subnetIDs []string) error
ValidateExistingPublicSubnets makes sure that subnets have the property MapPublicIpOnLaunch enabled
func ValidateLegacySubnetsForNodeGroups ¶
func ValidateLegacySubnetsForNodeGroups(spec *api.ClusterConfig, provider api.ClusterProvider) error
Types ¶
This section is empty.