-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Index pod IP too in ip_port
kubernetes indexer
#5721
Conversation
@@ -0,0 +1,22 @@ | |||
package add_kubernetes_metadata |
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.
don't use an underscore in package name
@@ -0,0 +1,22 @@ | |||
package add_kubernetes_metadata |
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.
don't use an underscore in package name
b7493a2
to
c248541
Compare
ip_port
ip_port
kubernetes indexer
@exekias Can you rebase this one? |
Before this change it only indexed ip:port combination, but in some cases we want to have ip only, as source port may not be exported
c248541
to
8993ebd
Compare
done! |
Data: commonMeta, | ||
}) | ||
|
||
for i := 1; i < len(hostPorts); i++ { |
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.
Should this be i := 0
? Or are you skipping the first one because it is the podIP? If yes, perhaps add a comment here otherwise I think it's likely to break if this gets refactored.
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.
no, as the first item in the list will be the ip, this filters it to range on ip:port pairs
Before this change, it only indexed ip:port combination, but in some cases, we want to have IP only, as source port may not be exported