Skip to content
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

Merged
merged 1 commit into from Nov 13, 2020

Conversation

eeyun
Copy link
Contributor

@eeyun eeyun commented Nov 5, 2020

Closes #4740

Will probably need a thorough review @MOZGIII but ultimately pretty trivial. We tap k8s_openapi to get the PodStatus data that holds PodIPs. This also bumps the k8s feature level to 1_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

@eeyun eeyun changed the title enhancement(kubernetes platform) Add PodIPs into Pod Metadata events enhancement(kubernetes_logs source) Add PodIPs into Pod Metadata events Nov 5, 2020
@eeyun eeyun changed the title enhancement(kubernetes_logs source) Add PodIPs into Pod Metadata events enhancement(kubernetes_logs source): Add PodIPs into Pod Metadata events Nov 5, 2020
@eeyun eeyun changed the title enhancement(kubernetes_logs source): Add PodIPs into Pod Metadata events enhancement(kubernetes_logs source): Add PodIPs into Pod Metadata event annotations Nov 5, 2020
@jamtur01 jamtur01 added the platform: kubernetes Anything `kubernetes` platform related label Nov 6, 2020
@jamtur01 jamtur01 added this to the 2020-10-26: Recognizer milestone Nov 6, 2020
Copy link
Contributor

@MOZGIII MOZGIII left a 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:

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!

@MOZGIII MOZGIII added ci-condition: k8s e2e all targets Run Kubernetes E2E test suite for all targets (instead of just the essential subset) ci-condition: k8s e2e tests enable Run Kubernetes E2E test suite for this PR labels Nov 6, 2020
@eeyun eeyun requested a review from MOZGIII November 10, 2020 16:28
Signed-off-by: Ian Henry <ianjhenry00@gmail.com>
@eeyun eeyun merged commit d06fae4 into master Nov 13, 2020
@eeyun eeyun deleted the eeyun/k8s_ip_annotation branch November 13, 2020 15:53
mengesb pushed a commit to jacobbraaten/vector that referenced this pull request Dec 9, 2020
…nts (vectordotdev#4887)

Signed-off-by: Ian Henry <ianjhenry00@gmail.com>
Signed-off-by: Brian Menges <brian.menges@anaplan.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-condition: k8s e2e all targets Run Kubernetes E2E test suite for all targets (instead of just the essential subset) ci-condition: k8s e2e tests enable Run Kubernetes E2E test suite for this PR platform: kubernetes Anything `kubernetes` platform related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Pod IP option to kubernetes_logs
3 participants