Skip to content

ROX-29452: Fix confusing certrefresh logs#15464

Merged
vladbologa merged 1 commit intomasterfrom
vb/certrefresh-logs
May 28, 2025
Merged

ROX-29452: Fix confusing certrefresh logs#15464
vladbologa merged 1 commit intomasterfrom
vb/certrefresh-logs

Conversation

@vladbologa
Copy link
Contributor

@vladbologa vladbologa commented May 28, 2025

Description

This PR fixes some confusing log messages related to certificate refresh, e.g.:

cert_refresher.go:110: Warn: secured cluster not found (this is expected on a new deployment), will refresh certificates immediately

cert_refresher.go:85: Info: successfully refreshed secured cluster for: SENSOR_SERVICE, COLLECTOR_SERVICE, SCANNER_DB_SERVICE, SCANNER_V4_DB_SERVICE, SCANNER_V4_INDEXER_SERVICE, SCANNER_SERVICE, ADMISSION_CONTROL_SERVICE

These were replaced with messages like "secured cluster TLS certificates not found", and so on.

Another point in the Jira ticket is that these messages are wrongly displayed when a connection to Central is not available. That was already fixed by #13596

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Trivial change, CI should be enough.

@vladbologa vladbologa requested a review from a team as a code owner May 28, 2025 10:57
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @vladbologa - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@vladbologa vladbologa requested a review from porridge May 28, 2025 11:01
@rhacs-bot
Copy link
Contributor

Images are ready for the commit at b3576ca.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.8.x-829-gb3576caa29.

@codecov
Copy link

codecov bot commented May 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.23%. Comparing base (7e4c3a7) to head (b3576ca).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #15464      +/-   ##
==========================================
- Coverage   49.24%   49.23%   -0.01%     
==========================================
  Files        2578     2578              
  Lines      189280   189280              
==========================================
- Hits        93202    93196       -6     
- Misses      88739    88744       +5     
- Partials     7339     7340       +1     
Flag Coverage Δ
go-unit-tests 49.23% <100.00%> (-0.01%) ⬇️

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.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vladbologa vladbologa enabled auto-merge (squash) May 28, 2025 12:46
@vladbologa
Copy link
Contributor Author

/test ocp-4-18-nongroovy-e2e-tests

@openshift-ci
Copy link

openshift-ci bot commented May 28, 2025

@vladbologa: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocp-4-18-nongroovy-e2e-tests b3576ca link false /test ocp-4-18-nongroovy-e2e-tests
ci/prow/gke-qa-e2e-tests b3576ca link false /test gke-qa-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@vladbologa vladbologa merged commit b248ff2 into master May 28, 2025
94 of 96 checks passed
@vladbologa vladbologa deleted the vb/certrefresh-logs branch May 28, 2025 13:43
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