Merge pull request #69436 from mcrute/issue-69237

[aws] allow true/false in lb annotations
This commit is contained in:
k8s-ci-robot
2018-10-05 01:33:31 -07:00
committed by GitHub

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
}