Skip to content

Commit

Permalink
fix: lint comment not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneutt committed Nov 29, 2021
1 parent a1e7219 commit ca0972e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/clusters/addons/kong/addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,7 @@ func urlForService(ctx context.Context, cluster clusters.Cluster, nsn types.Name
return nil, err
}

//nolint:exhaustive
switch service.Spec.Type {
switch service.Spec.Type { //nolint:exhaustive
case corev1.ServiceTypeLoadBalancer:
if len(service.Status.LoadBalancer.Ingress) == 1 {
return url.Parse(fmt.Sprintf("http://%s:%d", service.Status.LoadBalancer.Ingress[0].IP, port))
Expand Down

0 comments on commit ca0972e

Please sign in to comment.