From 0cbb929650feb27823aa00a2ff213df6496f5933 Mon Sep 17 00:00:00 2001 From: Olivia Song Date: Fri, 7 Jan 2022 16:54:32 -0800 Subject: [PATCH] log enhacement for subnet auto discovery --- pkg/networking/subnet_resolver.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/networking/subnet_resolver.go b/pkg/networking/subnet_resolver.go index 443bd7e7b..675d3ba15 100644 --- a/pkg/networking/subnet_resolver.go +++ b/pkg/networking/subnet_resolver.go @@ -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 }