Skip to content

Commit

Permalink
log enhacement for subnet auto discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviassss committed Jan 8, 2022
1 parent 2f525fd commit 0cbb929
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/networking/subnet_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,10 @@ func (r *defaultSubnetsResolver) filterSubnetsByAvailableIPAddress(subnets []*ec
for _, subnet := range subnets {
if awssdk.Int64Value(subnet.AvailableIpAddressCount) >= availableIPAddressCount {
filteredSubnets = append(filteredSubnets, subnet)
} else {
r.logger.Info("ELB requires at least 8 free IP addresses in each subnet",
"not enough IP addresses found in ", awssdk.StringValue(subnet.SubnetId))
}
}
r.logger.V(4).Info("Subnets filtered by Available IP Address: ", filteredSubnets)
return filteredSubnets
}

0 comments on commit 0cbb929

Please sign in to comment.