Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
happytreees committed Aug 19, 2024
1 parent b3edc0f commit be57088
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vultr/loadbalancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (l *loadbalancers) GetLoadBalancer(ctx context.Context, _ string, service *

enabledIPv6 := checkEnabledIPv6(service)
var ingress []v1.LoadBalancerIngress
hostname := lb.Label
hostname := lb.Label //nolint

// Check if hostname annotation is blank and set if not
if _, ok := service.Annotations[annoVultrHostname]; ok {
Expand Down Expand Up @@ -212,7 +212,7 @@ func (l *loadbalancers) EnsureLoadBalancer(ctx context.Context, clusterName stri
enabledIPv6 := checkEnabledIPv6(service)
var ingress []v1.LoadBalancerIngress

hostname := lb2.Label
hostname := lb2.Label //nolint
// Check if hostname annotation is blank and set if not
if _, ok := service.Annotations[annoVultrHostname]; ok {
if service.Annotations[annoVultrHostname] != "" {
Expand All @@ -223,7 +223,6 @@ func (l *loadbalancers) EnsureLoadBalancer(ctx context.Context, clusterName stri
}
klog.Infof("setting hostname for loadbalancer to: %s", hostname)
ingress = append(ingress, v1.LoadBalancerIngress{Hostname: hostname})

}
} else {
ingress = append(ingress, v1.LoadBalancerIngress{IP: lb2.IPV4})
Expand Down

0 comments on commit be57088

Please sign in to comment.