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

Always require the cluster UUID in the FlowAggregator #6714

Conversation

antoninbas
Copy link
Contributor

Before this change, the cluster UUID was strictly required by the S3Exporter and by the ClickHouseExporter, but somewhat optional for the IPFIXExporter (if not available after a certain timeout, a random UUID was generated and used to compute the IPFIX observation domain ID). Furthermore, every exporter by responsible for calling getClusterUUID independently, and that was the only reason for their implementations to require access to the K8s client.

I think it makes more sense to make things more uniform, and require the cluster UUID to be available regardless of which exporters are enabled. We can retrieve the cluster UUID once during FlowAggrgator initialization, then pass it along to all exporters which need it.

Before this change, the cluster UUID was strictly required by the
S3Exporter and by the ClickHouseExporter, but somewhat optional for the
IPFIXExporter (if not available after a certain timeout, a random UUID
was generated and used to compute the IPFIX observation domain
ID). Furthermore, every exporter by responsible for calling
getClusterUUID independently, and that was the only reason for their
implementations to require access to the K8s client.

I think it makes more sense to make things more uniform, and require the
cluster UUID to be available regardless of which exporters are
enabled. We can retrieve the cluster UUID once during FlowAggrgator
initialization, then pass it along to all exporters which need it.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
@antoninbas antoninbas added the area/flow-visibility/aggregator Issues or PRs related to Flow Aggregator label Oct 3, 2024
Copy link
Contributor

@yuntanghsu yuntanghsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antoninbas
Copy link
Contributor Author

/test-all

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antoninbas antoninbas merged commit ccf2dd0 into antrea-io:main Oct 8, 2024
58 of 63 checks passed
@antoninbas antoninbas deleted the always-require-clusterUUID-in-flow-aggregator branch October 8, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/flow-visibility/aggregator Issues or PRs related to Flow Aggregator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants