-
Notifications
You must be signed in to change notification settings - Fork 373
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
Always include podLabels in FlowAggregator IPFIX template #6386
Labels
area/flow-visibility/aggregator
Issues or PRs related to Flow Aggregator
Comments
antoninbas
added
the
area/flow-visibility/aggregator
Issues or PRs related to Flow Aggregator
label
May 31, 2024
cc @yuntanghsu |
@heanlan do you see any issue with this proposal? |
No, it looks good to me. |
antoninbas
added a commit
to antoninbas/antrea
that referenced
this issue
Jun 6, 2024
We always include the Pod labels IEs (for source and destination Pods), regardless of the value of the recordContents.podLabels configuration parameter. This simplifies the logic and the IPFIXExporter no longer needs to be aware of this configuration. There will be a minor size increase to the IPFIX records exported by the FlowAggregator when recordContents.podLabels is false, as we will need to include empty strings in the records for the 2 IEs. We use an empty string when recordContents.podLabels is false, or when the endpoint is not a Pod. We use an empty JSON dictionary ("{}"), when the Pod has no labels. Fixes antrea-io#6386 Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
antoninbas
added a commit
that referenced
this issue
Jun 10, 2024
We always include the Pod labels IEs (for source and destination Pods), regardless of the value of the recordContents.podLabels configuration parameter. This simplifies the logic and the IPFIXExporter no longer needs to be aware of this configuration. There will be a minor size increase to the IPFIX records exported by the FlowAggregator when recordContents.podLabels is false, as we will need to include empty strings in the records for the 2 IEs. We use an empty string when recordContents.podLabels is false, or when the endpoint is not a Pod. We use an empty JSON dictionary ("{}"), when the Pod has no labels. Fixes #6386 Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this is a good approach. We should always include podLabels in the template. I think there is no ambiguity because we can use
""
as the field value when podLabels are not being filled, and"{}"
when podLabels are being filled, but the Pod has no labels.Originally posted by @antoninbas in #6384 (comment)
This should simplify the IPFIXExporter code in the FlowAggregator.
The text was updated successfully, but these errors were encountered: