Skip to content

Commit

Permalink
Add load balancer type check
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryhe1999 committed Oct 27, 2023
1 parent 290c878 commit aa131a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/networking/subnet_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (r *defaultSubnetsResolver) validateSubnetsMinimalCount(subnets []*ec2sdk.S
// computeSubnetsMinimalCount returns the minimal count requirement for subnets.
func (r *defaultSubnetsResolver) computeSubnetsMinimalCount(subnetLocale subnetLocaleType, resolveOpts SubnetsResolveOptions) int {
minimalCount := 1
if resolveOpts.ALBSingleSubnet {
if resolveOpts.ALBSingleSubnet && resolveOpts.LBType == elbv2model.LoadBalancerTypeApplication {
return minimalCount
}
if resolveOpts.LBType == elbv2model.LoadBalancerTypeApplication && subnetLocale == subnetLocaleTypeAvailabilityZone {
Expand Down

0 comments on commit aa131a8

Please sign in to comment.