Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More reliable public subnet detection (#560)
* More reliable public subnet detection Look for an internet-facing route in the subnet's route table to determine whether this subnet is public or private. * More reliable public subnet detection Introduce a unit test for the new behavior and fix up the old unit tests to handle the extra ec2 calls. Also includes some review feedback, and preserves the intent of whether a managed subnet should be public or private as a tag to differentiate subnets that are not public from ones that are not public yet. * More reliable public subnet detection Rewords what defines a subnet as "public" to match the AWS docs, and removes the dependency on `describeVpcInternetGateways`, preferring to check whether the route's gateway id begins with `igw` instead. * More reliable public subnet detection Switch to using the "cluster api role" tag for public/private-ness, and simplify the fact-finding block with some helpers and by moving things around.. * More reliable subnet detection Run gofmt
- Loading branch information
1 parent
870d03d
commit 9f0fd8a
Showing
5 changed files
with
434 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.