linkerd2/pkg/k8s
Andrew Seigner 291d8e97ab
Move injected data from env var to k8s labels (#605)
The inject code detects the object it is being injected into, and writes
self-identifying information into the CONDUIT_PROMETHEUS_LABELS
environment variable, so that conduit-proxy may read this information
and report it to Prometheus at collection time.

This change puts the self-identifying information directly into
Kubernetes labels, which Prometheus already collects, removing the need
for conduit-proxy to be aware of this information. The resulting label
in Prometheus is recorded in the form `k8s_deployment`.

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
2018-03-23 16:11:34 -07:00
..
testdata Moves k8s and conduit client code to /pkg (#103) 2018-01-04 10:10:10 -08:00
api.go cli: reduce timeouts on API check requests (#586) 2018-03-19 17:15:01 -07:00
api_test.go cli: refactor k8s config to support $KUBECONFIG with multiple paths (#482) 2018-02-28 12:13:09 -08:00
k8s.go cli: refactor k8s config to support $KUBECONFIG with multiple paths (#482) 2018-02-28 12:13:09 -08:00
k8s_test.go cli: refactor k8s config to support $KUBECONFIG with multiple paths (#482) 2018-02-28 12:13:09 -08:00
labels.go Move injected data from env var to k8s labels (#605) 2018-03-23 16:11:34 -07:00
proxy.go cli: refactor k8s config to support $KUBECONFIG with multiple paths (#482) 2018-02-28 12:13:09 -08:00
proxy_test.go cli: refactor k8s config to support $KUBECONFIG with multiple paths (#482) 2018-02-28 12:13:09 -08:00
test_helper.go Remove kubectl dependency, validate k8s server version via api (#396) 2018-02-20 12:14:11 -08:00
version.go Remove kubectl dependency, validate k8s server version via api (#396) 2018-02-20 12:14:11 -08:00
version_test.go Remove kubectl dependency, validate k8s server version via api (#396) 2018-02-20 12:14:11 -08:00