Skip to content

Collects ClusterId for Telemetry Object Collector #1565

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

Merged
merged 15 commits into from
Feb 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update internal/mode/static/telemetry/collector.go
Co-authored-by: Saylor Berman <[email protected]>
  • Loading branch information
salonichf5 and sjberman authored Feb 15, 2024
commit f64b7badc5c678d4e74495ca23756381b64fd788
3 changes: 1 addition & 2 deletions internal/mode/static/telemetry/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ func collectClusterID(ctx context.Context, k8sClient client.Reader) (string, err
Name: kubeSystem,
}
var kubeNamespace v1.Namespace
err := k8sClient.Get(ctx, key, &kubeNamespace)
if err != nil {
if err := k8sClient.Get(ctx, key, &kubeNamespace); err != nil {
return "", fmt.Errorf("failed to get namespace :%w", err)
}
return string(kubeNamespace.GetUID()), nil
Expand Down