Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#2450 from oliviassss/log-enhance
Browse files Browse the repository at this point in the history
log enhacement for subnet auto discovery
  • Loading branch information
k8s-ci-robot authored Jan 12, 2022
2 parents e211bfc + 0cbb929 commit a59bc03
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 a59bc03

Please sign in to comment.