Commit Graph

24 Commits

Author SHA1 Message Date
Doug Fawley 74fe6eaa41
github: testing action workflow improvements and update to test Go1.16 (#4358) 2021-04-22 14:59:51 -07:00
Easwar Swaminathan 6fafb9193b
xds: support unspecified and wildcard filter chain prefixes (#4333) 2021-04-13 15:31:34 -07:00
Easwar Swaminathan fab5982df2
xds: server-side listener network filter validation (#4312) 2021-04-09 16:49:25 -07:00
Easwar Swaminathan 69f6f5a512
xds: add support for unsupported filter matchers (#4315) 2021-04-08 15:52:49 -07:00
Easwar Swaminathan f6bb3972ed
xds: filter chain matching logic for server-side (#4281) 2021-03-31 16:58:24 -07:00
Menghan Li c72e1c8f75
xds/resolver: support inline RDS resource from LDS response (#4299) 2021-03-31 16:30:10 -07:00
Menghan Li d26af8e391
admin: implement admin services (#4274) 2021-03-22 15:14:11 -07:00
Easwar Swaminathan de3c78e4f1
xds: validate 'listener_filters' and 'use_original_dst' fields (#4258) 2021-03-12 13:23:11 -08:00
Easwar Swaminathan e8930beb0e
xds: Prepare to support filter chains on the server (#4222) 2021-03-10 21:12:44 -08:00
Easwar Swaminathan a45f13b160
xds: Support server_listener_resource_name_template (#4233) 2021-03-10 09:26:23 -08:00
Menghan Li 930c79186c
csds: update xds_client to populate update metadata (#4226) 2021-03-03 18:06:50 -08:00
Doug Fawley 29bf29e0ed
xds: add HTTP filter is_optional support (gRFC A39) (#4221) 2021-03-02 09:11:35 -08:00
Doug Fawley 60843b1066
xds: add support for HTTP filters (gRFC A39) (#4206) 2021-02-25 14:04:15 -08:00
Menghan Li c8cef768c7
csds: update client resource cache to keep and dump metadata (#4217) 2021-02-25 12:57:45 -08:00
Doug Fawley 7b8d65a7bc
xds: rename internal/client files to remove client prefix (#4188) 2021-02-04 14:11:50 -08:00
Menghan Li ff40ef4227
xds: refactor xds_client (#3477)
This PR refactors xds_client to support multiples watches. Those watches can be for the same type and same resource_name.

There's upper level `Client` and lower level `v2client`. Before this change, all logic was in `v2client`, and `Client` was a thin wrapper.

This PR moves some of the functionality from `v2client` to `Client`. New layers:

- Upper level `Client`
  - keeps a list of watchers
    - provides method `func WatchXXX() (cancel func())`
    - has `WatchService()` which involves `LDS` and `RDS`
  - handles resources from the xDS responses and dispatch to the watchers
    - including multiple watchers for the same resource_name
  - keeps cache
    - and checks cache for new watches

- Lower level `v2client`
  - is a dumb client that
    - manages ADS stream
    - sends a new xDS request when add/remove watch
    - parses xDS responses
      - It doesn't call watchers, but forwards all parsed results to upper Client
    - handles ACK/NACK
  - supports `addWatch(type, name)` and `removeWatch(type, name)`
    - instead of `func watchCDS() func()`, which is now moved up to upper `Client`

Also includes other changes:
 - Corresponding test changes (some tests for `v2client` were moved to `Client`)
 - Method and type renaming
   - CDS/EDS -> Cluster/Endpoints
 - callback functions all accept updates as non-pointers
2020-04-15 14:32:31 -07:00
Menghan Li 7f5ddc8aee
xds: improve logging (#3386)
- More logs in xds bootstrap/resolver/cds/eds
  - Bootstrap file content/error
  - Request/response on ADS stream
  - Actions by client/resolver/balancer
  - Content of updates
- Logs prefixed with component name and id
  - `[xds-bootstrap]`
  - `[xds-client <address>]`
  - `[cds-lb <address>]`
  - `[eds-lb <address>]`
2020-02-26 17:50:07 -08:00
Garrett Gutierrez 132187f04c
Modified tests to use tlogger. (#3343)
* Modified tests to use tlogger.

* Fail on errors, with error expectations.

* Added expects and MixedCapsed grpclb_config tests

* Moved tlogger to grpctest, moved leakcheck tester to grpctest.go

* Added ExpectErrorN()

* Removed redundant leak checks

* Fixed new test

* Made tlogger globals into tlogger methods

* ErrorsLeft -> EndTest

* Removed some redundant lines

* Fixed error in test and empty map in EndTest
2020-02-06 13:03:20 -08:00
Easwar Swaminathan 8a65b8453b
xds: client test cleanup. (#3284) 2019-12-27 15:00:59 -08:00
Menghan Li d14c83465f
xds: client test cleanup (#3267) 2019-12-23 15:06:49 -08:00
Easwar Swaminathan 1c4070c2e9
xds: CDS implementation in v2Client. (#3203) 2019-11-25 09:14:33 -08:00
Easwar Swaminathan 24b653e8cc
xds: Don't override dialFunc in xdsClient in tests. (#3191)
* Add a helper to the fakexds package to return a ClientConn talking to
  the fake server.
* Tests will make use of this ClientConn wherever required, or they will
  directly pass the fake server's address as the balancerName to the
  xdsclient.New() function, thus exercising that code path as well.
* Add grpc.WithTimeout to list in vet.sh
2019-11-20 09:02:53 -08:00
Menghan Li 71ba135a58
xds: handle EDS in xds client (#3181) 2019-11-18 15:17:21 -08:00
Easwar Swaminathan dc9615bb06
xds: Initial implementation of a client using the v2 API (#3144)
This object will be used by a higher level xdsClient object, which will
provide the watch API used by the xds resolver and balancer
implementations.
2019-11-12 10:31:11 -08:00