mirror of https://github.com/linkerd/linkerd2.git
The proxy-injector retrieves owner information when injecting pods. For pods created via deployments, this requires a Pod -> ReplicaSet -> Deployment lookup. There is a race condition where the injection happens before the k8s informer client has indexed the new ReplicaSet. If a ReplicaSet informer lookup initially fails, retry one time via a get request. Also introduce logging to record the failure/retry, and tests to validate `GetOwnerKindAndName` works with and without informer indexing. Fixes #2731 Signed-off-by: Andrew Seigner <siggy@buoyant.io> |
||
---|---|---|
.. | ||
api | ||
cmd | ||
gen | ||
identity | ||
k8s | ||
proxy-injector | ||
script | ||
sp-validator | ||
tap | ||
webhook | ||
Dockerfile |