newrelic / k8s-agents-operator

Apache License 2.0
5 stars 5 forks source link

POC - Selector based injection for all available agents #87

Open danielstokes opened 5 days ago

danielstokes commented 5 days ago

Description

This POC uses selectors rather than annotations to inject instrumentation. This replicates secrets from some base (not determined yet) namespace to the pod namespace. [^1] This merges the main branch and feat/poc features, along with some additional changes:

Type of change

Checklist:

[^1]: There's no mechanism to update/patch/delete secrets in the case of a collision or rotating secrets [^2]: This won't work if the pod has multiple containers with different languages [^3]: Only the first container can be selected, except with Go, due to it having a specific annotation for which container to target [^4]: If we could target multiple containers for instrumentation in a pod with different languages, We'd also need to fix volumes