New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancement(kubernetes_logs source): Add PodIPs into Pod Metadata event annotations #4887
Conversation
c93197d
to
ede8ca7
Compare
ede8ca7
to
d60906a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR!
I left some comments in the code, the theme is mostly on eliminating some bits of custom "magic" and gonig with a bit more KISS approach.
There are some generic things that should be addressed:
- when working on the Kubernetes-related code, add a
ci-condition: k8s e2e tests enable
to opt-in into CI running end-top-end tests on your PR; for this PR, also enableci-condition: k8s e2e all targets
to run the test suite on more Kubernetes versions (without it tests are only ran at over a small subset of test targets - typically the latest versions); - please add the assertions to the E2E tests, see:
https://github.com/timberio/vector/blob/aade9e6e5c236f454c010e5e7366722ffa9b93b8/lib/k8s-e2e-tests/tests/vector-agent.rs#L438-L452
Keep in mind that E2E tests ensure our code works across all of our supported Kubernetes versions, and since we're not bumping the MSKV, the test code should be adequate for versions 1.14-1.19 (current latest). Ping me if you need help!
d60906a
to
29ed44d
Compare
29ed44d
to
b401de3
Compare
Signed-off-by: Ian Henry <ianjhenry00@gmail.com>
b401de3
to
7a8d87a
Compare
…nts (vectordotdev#4887) Signed-off-by: Ian Henry <ianjhenry00@gmail.com> Signed-off-by: Brian Menges <brian.menges@anaplan.com>
Closes #4740
Will probably need a thorough review @MOZGIII but ultimately pretty trivial. We tap
k8s_openapi
to get thePodStatus
data that holdsPodIPs
. This also bumps the k8s feature level to1_16
to support returning both the IPv4 and IPv6 addresses attached to a pod in the case that both things do in fact exist.Signed-off-by: Ian Henry ianjhenry00@gmail.com