-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process an endpoint set that has a desired port name (#88)
If K8s svc has several ports, K8s API may return Endpoints of that svc in arbitrary order. Processing only the first element of EndpointSet can cause error similar to this one: ``` E0423 15:00:32.251020 1 endpoints_watch.go:86] error while building backend list: port 'varnish-port' not found in endpoint list ``` Instead of working with the first element only, this commit introduces an additional function that tries to find an EndpointSet with the desired port name. Co-authored-by: mqmr <me@mqmr.com> Co-authored-by: Martin Helmich <m.helmich@mittwald.de>
- Loading branch information
1 parent
f9bf0e8
commit 2265347
Showing
2 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters