Skip to content

Conversation

ErikJiang
Copy link
Contributor

@ErikJiang ErikJiang commented Jun 24, 2025

Proposed Changes

The client-kube-proxy.crt and client-k3s-controller.crt certificate files are no longer in use.

This change introduces a cleanupLegacyCerts function that is called during server startup to remove these files from the data directory, preventing clutter and potential confusion.

Types of Changes

Bugfix

Linked Issues

#12534

User-Facing Change

Clean up client-kube-proxy.crt and client-k3s-controller.crt certificate files on start

Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
@ErikJiang ErikJiang requested a review from a team as a code owner June 24, 2025 07:35
Copy link
Member

@brandond brandond left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

Copy link

codecov bot commented Jun 24, 2025

Codecov Report

Attention: Patch coverage is 62.50000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 19.92%. Comparing base (6d076f4) to head (19306f5).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/daemons/control/deps/deps.go 62.50% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12541      +/-   ##
==========================================
+ Coverage   19.90%   19.92%   +0.01%     
==========================================
  Files         184      184              
  Lines       19265    19280      +15     
==========================================
+ Hits         3835     3841       +6     
- Misses      14998    15004       +6     
- Partials      432      435       +3     
Flag Coverage Δ
unittests 19.92% <62.50%> (+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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@brandond brandond merged commit db778fa into k3s-io:master Jun 24, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants