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

Fix log spam from spoke_token_controller #413

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

grandeit
Copy link
Contributor

  • I have taken backward compatibility into consideration.

Fix the log spam of the spoke_token_controller by only logging events that pass the predicate functions.
Removes the following log spam when secrets get updated somewhere in the cluster:
--- SNIP ---
I1030 02:26:00.606725 1 spoke_token_controller.go:432] secret namespace not matched, appAddonNS= open-cluster-management-agent-addon
I1030 02:26:00.864936 1 spoke_token_controller.go:432] secret namespace not matched, appAddonNS= open-cluster-management-agent-addon
I1030 02:26:01.063803 1 spoke_token_controller.go:432] secret namespace not matched, appAddonNS= open-cluster-management-agent-addon
I1030 02:26:01.325161 1 spoke_token_controller.go:432] secret namespace not matched, appAddonNS= open-cluster-management-agent-addon
--- SNAP ---

@mikeshng
Copy link
Member

Thank you for your contribution!

@mikeshng mikeshng requested review from rokej and xiangjingli and removed request for lennysgarage October 30, 2024 14:32
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.35%. Comparing base (dfcbf0c) to head (11349be).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #413      +/-   ##
==========================================
- Coverage   56.66%   56.35%   -0.31%     
==========================================
  Files          68       68              
  Lines       15248    15236      -12     
==========================================
- Hits         8640     8586      -54     
- Misses       5746     5796      +50     
+ Partials      862      854       -8     
Flag Coverage Δ
unit 56.35% <ø> (-0.31%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Manuel Grandeit <m.grandeit@gmail.com>
@xiangjingli
Copy link
Collaborator

/lgtm

Copy link
Member

@mikeshng mikeshng left a comment

Choose a reason for hiding this comment

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

/approve

Copy link
Contributor

openshift-ci bot commented Oct 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grandeit, mikeshng

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants