Skip to content

Commit

Permalink
fix: correctly use the eip facility annotation
Browse files Browse the repository at this point in the history
Fix the load balancer ignoring the EIP facilicy selection annotation by
actually passing the correct annotation configuration to the new load
balancer function.

Fixes #409

Signed-off-by: Tim Jones <tim.jones@siderolabs.com>
  • Loading branch information
TimJones committed May 9, 2023
1 parent aa9ffbf commit 13e4c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metal/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (c *cloud) Initialize(clientBuilder cloudprovider.ControllerClientBuilder,
if err != nil {
klog.Fatalf("could not initialize BGP: %v", err)
}
lb, err := newLoadBalancers(c.client, clientset, c.config.ProjectID, c.config.Metro, c.config.Facility, c.config.LoadBalancerSetting, bgp.localASN, bgp.bgpPass, c.config.AnnotationNetworkIPv4Private, c.config.AnnotationLocalASN, c.config.AnnotationPeerASN, c.config.AnnotationPeerIP, c.config.AnnotationSrcIP, c.config.AnnotationBGPPass, c.config.AnnotationEIPMetro, c.config.AnnotationEIPMetro, c.config.BGPNodeSelector, c.config.EIPTag)
lb, err := newLoadBalancers(c.client, clientset, c.config.ProjectID, c.config.Metro, c.config.Facility, c.config.LoadBalancerSetting, bgp.localASN, bgp.bgpPass, c.config.AnnotationNetworkIPv4Private, c.config.AnnotationLocalASN, c.config.AnnotationPeerASN, c.config.AnnotationPeerIP, c.config.AnnotationSrcIP, c.config.AnnotationBGPPass, c.config.AnnotationEIPMetro, c.config.AnnotationEIPFacility, c.config.BGPNodeSelector, c.config.EIPTag)
if err != nil {
klog.Fatalf("could not initialize LoadBalancers: %v", err)
}
Expand Down

0 comments on commit 13e4c7c

Please sign in to comment.