-
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
Changes from 1 commit
9725609
0e3e203
97d5e13
c61adf4
36b704f
f53db96
84a6c46
e697580
20547b9
8288315
9721178
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
… rather than just IP Signed-off-by: Patryk Matyjasek <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,8 @@ type Config struct { | |
// Filter section allows specifying filters to filter | ||
// pods by labels, fields, namespaces, nodes, etc. | ||
Filter FilterConfig `mapstructure:"filter"` | ||
|
||
Association []PodAssociationConfig `mapstructure:"pod_association"` | ||
tigrannajaryan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
// ExtractConfig section allows specifying extraction rules to extract | ||
|
@@ -173,3 +175,15 @@ type FieldFilterConfig struct { | |
// equals, not-equals, exists, does-not-exist. | ||
Op string `mapstructure:"op"` | ||
} | ||
|
||
// PodAssociationConfig allows specifying rules for associating resources | ||
tigrannajaryan marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
// with pod metadata | ||
type PodAssociationConfig struct { | ||
// From represents the source of the association. | ||
// Allowed values are connection and label | ||
pmatyjasek-sumo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
From string `mapstructure:"from"` | ||
|
||
// Name represents the name of the association. | ||
|
||
// e.g. ip, pod_uid | ||
|
Uh oh!
There was an error while loading. Please reload this page.