-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add clusterUUID column to S3Uploader and ClickHouseExporter #4214
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4214 +/- ##
==========================================
- Coverage 60.97% 60.58% -0.40%
==========================================
Files 384 385 +1
Lines 54378 54392 +14
==========================================
- Hits 33159 32954 -205
- Misses 18770 19000 +230
+ Partials 2449 2438 -11
|
ae5f71e
to
549b563
Compare
pkg/flowaggregator/exporter/ipfix.go
Outdated
) | ||
clusterUUID, err := getClusterUUID(k8sClient) | ||
if err != nil { | ||
klog.InfoS("Error when retrieving cluster UUID; will generate a random observation domain ID", "error", err) |
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 think we could switch to klog.ErrorS
here
pkg/flowaggregator/exporter/utils.go
Outdated
clusterUUID = clusterIdentity.UUID | ||
return true, nil | ||
}); err != nil { | ||
return clusterUUID, fmt.Errorf("unable to retrieve cluster UUID, timeout: %v, ConfigMapNameSpace: %s, ConfigMapName: %s", timeout, defaultAntreaNamespace, clusteridentity.DefaultClusterIdentityConfigMapName) |
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.
return clusterUUID, fmt.Errorf("unable to retrieve cluster UUID, timeout: %v, ConfigMapNameSpace: %s, ConfigMapName: %s", timeout, defaultAntreaNamespace, clusteridentity.DefaultClusterIdentityConfigMapName) | |
return clusterUUID, fmt.Errorf("unable to retrieve cluster UUID from ConfigMap '%s/%s': timeout after %v", defaultAntreaNamespace, clusteridentity.DefaultClusterIdentityConfigMapName, timeout) | |
8f74883
to
ab03a81
Compare
ab03a81
to
9f45287
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.
LGTM
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.
LGTM
@@ -81,9 +81,10 @@ const ( | |||
throughputFromSourceNode, | |||
throughputFromDestinationNode, | |||
reverseThroughputFromSourceNode, | |||
reverseThroughputFromDestinationNode) | |||
reverseThroughputFromDestinationNode, | |||
clusterUUID) |
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.
nit: some extra indents here?
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.
thanks, mixed tabs and spaces
To support multi-cluster, we add a column "clusterUUID" to the S3Uploader and ClickHouseExporter flows table, as the cluster identifier. Signed-off-by: heanlan <[email protected]>
9f45287
to
c36b30e
Compare
/test-all |
/test-all |
Hi @antoninbas , shall we merge it? The successful run of jenkins e2e is here: http://10.176.27.169:8080/job/antrea-e2e-for-pull-request/1413/ |
…o#4214) To support multi-cluster, we add a column "clusterUUID" to the S3Uploader and ClickHouseExporter flows table, as the cluster identifier. Signed-off-by: heanlan <[email protected]>
To support multi-cluster, we add a column "clusterUUID" to the S3Uploader and ClickHouseExporter flows table, as the cluster identifier.
Signed-off-by: heanlan [email protected]