-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[k8sprocessor] Add ability to associate metadata tags using pod UID rather than just IP #2199
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
[k8sprocessor] Add ability to associate metadata tags using pod UID rather than just IP #2199
Conversation
d90e3af
to
44c8f1e
Compare
Codecov Report
@@ Coverage Diff @@
## main #2199 +/- ##
=======================================
Coverage 90.45% 90.46%
=======================================
Files 397 397
Lines 19563 19614 +51
=======================================
+ Hits 17695 17743 +48
- Misses 1406 1408 +2
- Partials 462 463 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
… rather than just IP Signed-off-by: Patryk Matyjasek <[email protected]>
44c8f1e
to
9725609
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.
Looks really nice!
return | ||
} | ||
} | ||
c.Pods[pod.Status.PodIP] = newPod |
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.
Do I get it right that the same pod will exist twice in the list, once keyed by the IP and once by the ID?
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.
I actually discussed this with @pmatyjasek-sumo while he was working on the extension :) Having a single map and two references to the pod just makes the things easier, since this are different domains that have no risk of conflicts
Description:
Add ability to associate metadata tags in k8s processor using pod UID rather than just IP
Link to tracking Issue: #1146
Testing:
Unit tests
Documentation:
In-code comments