mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
[aws] allow true/false in lb annotations
This commit is contained in:
parent
5589c5b3cb
commit
076dbc6fd6
@ -3330,7 +3330,9 @@ func (c *Cloud) EnsureLoadBalancer(ctx context.Context, clusterName string, apiS
|
|||||||
// Determine if this is tagged as an Internal ELB
|
// Determine if this is tagged as an Internal ELB
|
||||||
internalELB := false
|
internalELB := false
|
||||||
internalAnnotation := apiService.Annotations[ServiceAnnotationLoadBalancerInternal]
|
internalAnnotation := apiService.Annotations[ServiceAnnotationLoadBalancerInternal]
|
||||||
if internalAnnotation != "" {
|
if internalAnnotation == "false" {
|
||||||
|
internalELB = false
|
||||||
|
} else if internalAnnotation != "" {
|
||||||
internalELB = true
|
internalELB = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user