2c45428c8a
We previously did not copy the sticky flag if the load-balancer method validation failed, causing enabled stickiness to be dropped in case of a validation error (which, technically, for us is the same as a load-balancer configuration without an explicitly set method). This change fixes that. A few refactorings and improvements along the way: - Move the frontend and backend configuration steps into separate methods/functions for better testability. - Include the invalid method name in the error value and avoid log duplication. - Add tests for the backend configuration part. |
||
---|---|---|
.. | ||
adapters.go | ||
configuration.go | ||
rules.go | ||
rules_test.go | ||
server.go | ||
server_test.go | ||
web.go |