linkerd2/pkg
Alejandro Pedraza bbcf5a8c9f Allow stat summary to query for multiple resources (#1841)
* Refactor util.BuildResource so it can deal with multiple resources

First step to address #1487: Allow stat summary to query for multiple
resources

Signed-off-by: Alejandro Pedraza <alejandro.pedraza@gmail.com>

* Update the stat cli help text to explain the new multi resource querying ability

Propsal for #1487: Allow stat summary to query for multiple resources

Signed-off-by: Alejandro Pedraza <alejandro.pedraza@gmail.com>

* Allow stat summary to query for multiple resources

Implement this ability by issuing parallel requests to requestStatsFromAPI()

Proposal for #1487

Signed-off-by: Alejandro Pedraza <alejandro.pedraza@gmail.com>

* Update tests as part of multi-resource support in `linkerd stat` (#1487)

- Refactor stat_test.go to reuse the same logic in multiple tests, and
add cases and files for json output.
- Add a couple of cases to api_utils_test.go to test multiple resources
validation.

Signed-off-by: Alejandro Pedraza <alejandro.pedraza@gmail.com>

* `linkerd stat` called with multiple resources should keep an ordering (#1487)

Add SortedRes holding the order of resources to be followed when
querying `linkerd stat` with multiple resources

Signed-off-by: Alejandro Pedraza <alejandro.pedraza@gmail.com>

* Extra validations for `linkerd stat` with multiple resources (#1487)

Signed-off-by: Alejandro Pedraza <alejandro.pedraza@gmail.com>

* `linkerd stat` resource grouping, ordering and name prefixing (#1487)

- Group together stats per resource type.
- When more than one resource, prepend name with type.
- Make sure tables always appear in the same order.

Signed-off-by: Alejandro Pedraza <alejandro.pedraza@gmail.com>

* Allow `linkerd stat` to be called with multiple resources

A few final refactorings as per code review.

Fixes #1487

Signed-off-by: Alejandro Pedraza <alejandro.pedraza@gmail.com>
2018-11-14 10:44:04 -08:00
..
addr Add source metadata to Tap server tap events (#1434) 2018-08-13 13:25:14 -07:00
admin Add controller admin servers and readiness probes (#1168) 2018-06-20 17:32:44 -07:00
filesonly Move controller/util and web/util packages to pkg (#1109) 2018-06-13 11:25:56 -07:00
flags Send glog logs to stderr by default (#1367) 2018-07-25 12:59:24 -07:00
healthcheck Make permission checks non-fatal, add check for CRDs (#1859) 2018-11-14 10:29:04 -08:00
k8s Allow stat summary to query for multiple resources (#1841) 2018-11-14 10:44:04 -08:00
profiles Improve ergonomics of service profile spec (#1828) 2018-10-31 12:00:22 -07:00
prometheus Add controller admin servers and readiness probes (#1168) 2018-06-20 17:32:44 -07:00
tls Proxy init and sidecar containers auto-injection (#1714) 2018-10-10 12:09:22 -07:00
util Fix integration test and docker build (#1790) 2018-10-19 10:23:34 -07:00
version Update check command to work with older versions (#1678) 2018-09-17 19:41:51 -07:00