From 13e4c7cafeb0c2943420b500be7feb0c5780d9b0 Mon Sep 17 00:00:00 2001 From: Tim Jones Date: Tue, 9 May 2023 21:57:46 +0200 Subject: [PATCH] fix: correctly use the eip facility annotation 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 --- metal/cloud.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metal/cloud.go b/metal/cloud.go index 186605b4..15284f3f 100644 --- a/metal/cloud.go +++ b/metal/cloud.go @@ -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) }