returnnil,fmt.Errorf("annotation %q=%q detected, but the only value supported currently is 0.0.0.0/0",ServiceAnnotationLoadBalancerInternal,internalAnnotation)
}
if!service.IsAllowAll(sourceRanges){
// TODO: Unify the two annotations
returnnil,fmt.Errorf("source-range annotation cannot be combined with the internal-elb annotation")
}
internalELB=true
}
// Find the subnets that the ELB will live in
subnetIDs,err:=s.findELBSubnets(internalELB)
iferr!=nil{
glog.Error("Error listing subnets in VPC: ",err)
returnnil,err
...
...
@@ -2115,7 +2206,7 @@ func (s *AWSCloud) EnsureLoadBalancer(name, region string, publicIP net.IP, port