[aws] allow true/false in lb annotations

This commit is contained in:
Mike Crute 2018-10-04 12:10:04 -07:00
parent 5589c5b3cb
commit 076dbc6fd6

View File

@ -3330,7 +3330,9 @@ func (c *Cloud) EnsureLoadBalancer(ctx context.Context, clusterName string, apiS
// Determine if this is tagged as an Internal ELB
internalELB := false
internalAnnotation := apiService.Annotations[ServiceAnnotationLoadBalancerInternal]
if internalAnnotation != "" {
if internalAnnotation == "false" {
internalELB = false
} else if internalAnnotation != "" {
internalELB = true
}