Skip to content

Commit 824f7e8

Browse files
Set lbMethod annotation to svcConfig (#2991)
Currently the lbMethod is not set into the svcConfig which leads to the default lbMethod being used Co-authored-by: nikParasyr <[email protected]>
1 parent 0be0a95 commit 824f7e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/openstack/loadbalancer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,7 @@ func (lbaas *LbaasV2) checkService(ctx context.Context, service *corev1.Service,
15391539
func (lbaas *LbaasV2) makeSvcConf(ctx context.Context, serviceName string, service *corev1.Service, svcConf *serviceConfig) error {
15401540
svcConf.connLimit = getIntFromServiceAnnotation(service, ServiceAnnotationLoadBalancerConnLimit, -1)
15411541
svcConf.lbID = getStringFromServiceAnnotation(service, ServiceAnnotationLoadBalancerID, "")
1542+
svcConf.poolLbMethod = getStringFromServiceAnnotation(service, ServiceAnnotationLoadBalancerLbMethod, "")
15421543
svcConf.supportLBTags = openstackutil.IsOctaviaFeatureSupported(ctx, lbaas.lb, openstackutil.OctaviaFeatureTags, lbaas.opts.LBProvider)
15431544

15441545
// Get service node-selector annotations

0 commit comments

Comments
 (0)