findSubnet function's logic is incorrect when subnet ID is specified #2732
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
/kind bug
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
findSubnet function's logic is incorrect when subnet ID is specified in AWSMachine's spec. Current logic returns a subnet ID from a spec when failureDomain is not defined, which may not match any subnets provided in AWSCluster.
What did you expect to happen:
The function should find a matching subnet regardless of a failureDomain setting.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: