From 076dbc6fd645f66488d5adb374fd338ed5f9a439 Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Thu, 4 Oct 2018 12:10:04 -0700 Subject: [PATCH] [aws] allow true/false in lb annotations --- pkg/cloudprovider/providers/aws/aws.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cloudprovider/providers/aws/aws.go b/pkg/cloudprovider/providers/aws/aws.go index b3877f052bc..5420ef00814 100644 --- a/pkg/cloudprovider/providers/aws/aws.go +++ b/pkg/cloudprovider/providers/aws/aws.go @@ -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 }