Skip to content

Commit e2788e3

Browse files
authored
Set lbMethod annotation to svcConfig (#2988)
Currently the lbMethod is not set into the svcConfig which leads to the default lbMethod being used
1 parent 37d37d5 commit e2788e3

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
@@ -1540,6 +1540,7 @@ func (lbaas *LbaasV2) checkService(ctx context.Context, service *corev1.Service,
15401540
func (lbaas *LbaasV2) makeSvcConf(ctx context.Context, serviceName string, service *corev1.Service, svcConf *serviceConfig) error {
15411541
svcConf.connLimit = getIntFromServiceAnnotation(service, ServiceAnnotationLoadBalancerConnLimit, -1)
15421542
svcConf.lbID = getStringFromServiceAnnotation(service, ServiceAnnotationLoadBalancerID, "")
1543+
svcConf.poolLbMethod = getStringFromServiceAnnotation(service, ServiceAnnotationLoadBalancerLbMethod, "")
15431544
svcConf.supportLBTags = openstackutil.IsOctaviaFeatureSupported(ctx, lbaas.lb, openstackutil.OctaviaFeatureTags, lbaas.opts.LBProvider)
15441545

15451546
// Get service node-selector annotations

0 commit comments

Comments
 (0)