linkerd2/controller/api/public
Alejandro Pedraza 02efb46e45
Have the proxy-injector emit events upon injection/skipping injection (#3316)
* Have the proxy-injector emit events upon injection/skipping injection

Fixes #3253

Have the proxy-injector emit an event whenever a injection happens, or
when injection is skipped for some reason (also added that reason into
the proxy-injector logs). The level is associated to the parent workload
(it can't be associated to the pod because at this point the pod hasn't
been persisted).

The event recorder was setup at the `webhook/server.go` level and passed
to the proxy-injector's `Inject` function. The sp-validator thus also
has access to the event recorder, but for now it's not using it.

Related changes:

- Refactored `api.GetOwnerKindAndName()` to have it return a more
generic object.
- Refactored `report.Injectable()` to also have it return the reason why
a workload is not injectable.

Signed-off-by: Alejandro Pedraza <alejandro@buoyant.io>
2019-08-26 13:34:36 -05:00
..
testdata proxy: Upgrade to identity-capable proxy (#2524) 2019-03-19 14:20:39 -07:00
client.go Remove tap from public API and associated test infrastructure (#3240) 2019-08-14 17:27:37 -04:00
client_test.go Introduce tap APIService, update `linkerd tap` (#3167) 2019-08-01 14:02:45 -07:00
edges.go Add unit test for edges API endpoint (#3306) 2019-08-23 09:28:02 -07:00
edges_test.go Add unit test for edges API endpoint (#3306) 2019-08-23 09:28:02 -07:00
grpc_server.go Have the proxy-injector emit events upon injection/skipping injection (#3316) 2019-08-26 13:34:36 -05:00
grpc_server_test.go Remove tap from public API and associated test infrastructure (#3240) 2019-08-14 17:27:37 -04:00
http_server.go Remove tap from public API and associated test infrastructure (#3240) 2019-08-14 17:27:37 -04:00
http_server_test.go Remove tap from public API and associated test infrastructure (#3240) 2019-08-14 17:27:37 -04:00
prometheus.go Add trafficsplit metrics to CLI (#3176) 2019-08-14 10:30:57 -07:00
stat_summary.go Adding trafficsplit test to stat_summary_test.go (#3252) 2019-08-14 14:48:46 -07:00
stat_summary_test.go Adding trafficsplit test to stat_summary_test.go (#3252) 2019-08-14 14:48:46 -07:00
stream_client.go Introduce tap APIService, update `linkerd tap` (#3167) 2019-08-01 14:02:45 -07:00
test_helper.go Add unit test for edges API endpoint (#3306) 2019-08-23 09:28:02 -07:00
top_routes.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00
top_routes_test.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00