Skip to content

Commit

Permalink
fix LoadBalancer port protocol assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ushabelgur committed Apr 29, 2024
1 parent 8636d29 commit be9b778
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/cloudprovider/ironcore/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,13 @@ func (o *ironcoreLoadBalancer) EnsureLoadBalancer(ctx context.Context, clusterNa
klog.V(2).InfoS("Getting LoadBalancer ports from Service", "Service", client.ObjectKeyFromObject(service))
var lbPorts []networkingv1alpha1.LoadBalancerPort
for _, svcPort := range service.Spec.Ports {
protocol := svcPort.Protocol
lbPorts = append(lbPorts, networkingv1alpha1.LoadBalancerPort{
Protocol: &svcPort.Protocol,
Protocol: &protocol,
Port: svcPort.Port,
})
}

Check failure on line 110 in pkg/cloudprovider/ironcore/load_balancer.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
loadBalancer := &networkingv1alpha1.LoadBalancer{
TypeMeta: metav1.TypeMeta{
Kind: "LoadBalancer",
Expand Down

0 comments on commit be9b778

Please sign in to comment.