linkerd2/cli/cmd
Alex Leong 9cd4557644
Properly show the meshed count for non-selector services (#4446)
When viewing the output of `linkerd stat` for services which do not have a selector (such as services created by the service-mirror, for example) the meshed count column shows the total number which exist, even though the service actually selects no pods at all.

We update the StatSummary implementation to account for services which have no selector.

Additionally, we update the logic of the `--unmeshed` flag.  When the `--unmeshed` flag is not set, we typically skip rows for unmeshed resources because those resources would have no stats.  This is not appropriate to do when the `--from` flag is also set because in this case, metrics are not collected on the target resource but are instead collected on the client-side.  This means that stats can be present, even for unmeshed resources and these resources should still be displayed, even if the `--unmeshed` flag is not set.

Signed-off-by: Alex Leong <alex@buoyant.io>
2020-05-20 10:08:27 -07:00
..
testdata Separate grafana image tag in template (#4395) 2020-05-20 22:27:19 +05:30
alpha.go Add alpha clients command (#4157) 2020-03-12 13:45:34 -07:00
alpha_clients.go Add alpha clients command (#4157) 2020-03-12 13:45:34 -07:00
alpha_stat.go Upgrade to client-go 0.17.4 and smi-sdk-go 0.3.0 (#4221) 2020-04-01 10:07:23 -07:00
check.go Add health checks for grafana add-on (#4321) 2020-05-14 23:18:43 +05:30
check_test.go Output check result as json (#2666) 2019-05-20 09:04:28 -07:00
cluster.go Enable service mirroring to work in private networks (#4440) 2020-05-20 19:48:36 +03:00
completion.go CLI help updates: non-experimental auto-inject; unhide install-cni (#2319) 2019-02-18 15:32:46 -08:00
completion_test.go Bump proxy-init to 1.2.0 (#3397) 2019-09-09 09:06:14 -07:00
dashboard.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
diagnostics.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
doc.go Fix issue for debug containers when using custom Docker registry (#3873) 2020-01-17 10:18:03 -08:00
edges.go Add Kubeconfig contex namespace to cli commands' options (#4197) (#4291) 2020-05-04 16:21:05 -05:00
edges_test.go Add unit test for edges API endpoint (#3306) 2019-08-23 09:28:02 -07:00
endpoints.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
endpoints_test.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
get.go Add Kubeconfig contex namespace to cli commands' options (#4197) (#4291) 2020-05-04 16:21:05 -05:00
get_test.go Fix most golint issues that are not comment related (#1982) 2018-12-20 10:37:47 -08:00
inject.go Make gateway require TLS for incoming requests (#4339) 2020-05-11 10:07:48 +03:00
inject_test.go charts: Using downwardAPI to mount labels to the proxy container (#4199) 2020-04-22 10:33:51 -05:00
inject_util.go Fix inject with path and add tests (#3038) 2019-07-05 09:26:25 -05:00
install-cni-plugin.go Remove experimental from CNI (#4038) 2020-02-11 20:10:55 +02:00
install-cni-plugin_test.go Fix CNI config parsing (#3953) 2020-01-23 09:55:04 -08:00
install-service-mirror.go Restrict Service mirror RBACs (#4426) 2020-05-20 17:08:01 +03:00
install-sp.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
install-sp_test.go Add cluster domain cli flag (#3360) 2019-09-19 16:08:50 -07:00
install.go Separate grafana image tag in template (#4395) 2020-05-20 22:27:19 +05:30
install_addon_test.go Add global.grafanaUrl for linking existing grafana use-case (#4381) 2020-05-20 00:56:31 +05:30
install_cni_helm_test.go Improve cni resources labels (#4032) 2020-02-11 12:10:08 +02:00
install_helm_test.go Refactor linkerd-config-addons configmap (#4318) 2020-05-05 14:11:21 +05:30
install_test.go Separate grafana image tag in template (#4395) 2020-05-20 22:27:19 +05:30
logs.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
logs_test.go Introduce inject integration tests (#2616) 2019-04-05 11:42:49 -07:00
main_test.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
metrics.go Add Kubeconfig contex namespace to cli commands' options (#4197) (#4291) 2020-05-04 16:21:05 -05:00
metrics_diagnostics_util.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
metrics_diagnostics_util_test.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
profile.go Add Kubeconfig contex namespace to cli commands' options (#4197) (#4291) 2020-05-04 16:21:05 -05:00
profile_test.go Allow setting custom cluster domain in service profiles (#3148) 2019-08-07 09:49:54 -07:00
public_api.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
range_slice.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
range_slice_test.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
root.go Make gateway require TLS for incoming requests (#4339) 2020-05-11 10:07:48 +03:00
routes.go Fix routes wide output formatting for empty values (#4239) 2020-04-07 14:35:55 -05:00
routes_test.go Fix routes wide output formatting for empty values (#4239) 2020-04-07 14:35:55 -05:00
stat.go Properly show the meshed count for non-selector services (#4446) 2020-05-20 10:08:27 -07:00
stat_test.go Add validation to ensure stat time window is at least 15s (#3720) 2019-12-04 08:12:01 +02:00
tap.go Add Kubeconfig contex namespace to cli commands' options (#4197) (#4291) 2020-05-04 16:21:05 -05:00
tap_test.go Add TapEvent headers and trailers to the tap protobuf (#3410) 2019-09-29 09:54:37 -07:00
top.go Add Kubeconfig contex namespace to cli commands' options (#4197) (#4291) 2020-05-04 16:21:05 -05:00
uninject.go Upgrade golangci-lint to v1.23.8 (#4181) 2020-03-18 09:13:19 -05:00
uninject_test.go Remove envoy, contour restrictions (#4092) 2020-03-02 09:18:51 -05:00
uninstall.go `linkerd uninstall` errors when attempting to delete PSP (#4234) 2020-04-07 11:01:11 -05:00
uninstall_test.go Add uninstall cmd functionality to cli (#3622) (#4200) 2020-04-02 12:35:39 -05:00
upgrade.go Refactor AddOn Installation (#4247) 2020-04-16 15:24:55 -05:00
upgrade_test.go Move grafana templates into a separate sub-chart as a add-on (#4320) 2020-05-11 22:22:14 +05:30
version.go Improve proxy version diagnostics (#4244) 2020-04-16 11:28:19 -07:00
version_test.go Improve proxy version diagnostics (#4244) 2020-04-16 11:28:19 -07:00