[occm] improve LB logic maintainability #2374
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
What happened:
it's hard to maintain the
pkg/openstack/loadbalancer.go
file, since it contains more than 2.5k lines of code and some functions/methods are hard to read.What you expected to happen:
I'm planning to split
pkg/openstack/loadbalancer.go
into multiple ``pkg/openstack/loadbalancer_*.go` files and simplify some complex func/method logic, e.g. remove a number if/then/elseif/else conditions, which complicate the code reading and maintainability.How to reproduce it:
n/a
Anything else we need to know?:
n/a
Environment:
The text was updated successfully, but these errors were encountered: