Merge pull request #69436 from mcrute/issue-69237

[aws] allow true/false in lb annotations
pull/58/head
k8s-ci-robot 2018-10-05 01:33:31 -07:00 committed by GitHub
commit 5fdb0c7177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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
}