You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
upcoming buildACLConfigRoutersAndServices in pkg/provider/provider.go should return an error. The non-ACL version returns an error if it is unable to build config pieces.
Background
Consistent behaviour makes debugging easier.
The text was updated successfully, but these errors were encountered:
The only reason why buildConfigRoutersAndServices returns an error is because it's checking if the traffic-type is something valid. buildACLConfigRoutersAndServices is checking that too but we can't interrupt the traffic-target loop on the first error we encounter. We still want to evaluate the configuration in a best effort fashion.
As a quick fix, I suggest we check the traffic-type and scheme once and for all as a first step when we process a service.
In the long run I would love to see this code being restructured. Right now it's just a bunch of functions which call other functions (really deep) without any appearing logic. If would be pleased have a conversation with you an @kevinpollet about how we could improve this structure.
Feature Request
Proposal
upcoming
buildACLConfigRoutersAndServices
inpkg/provider/provider.go
should return an error. The non-ACL version returns an error if it is unable to build config pieces.Background
Consistent behaviour makes debugging easier.
The text was updated successfully, but these errors were encountered: