Skip to content

eve-k: Handle k3s restarts in k3s components update path.#5544

Merged
eriknordmark merged 1 commit into
lf-edge:masterfrom
andrewd-zededa:eve-k-update-restart
Jan 31, 2026
Merged

eve-k: Handle k3s restarts in k3s components update path.#5544
eriknordmark merged 1 commit into
lf-edge:masterfrom
andrewd-zededa:eve-k-update-restart

Conversation

@andrewd-zededa
Copy link
Copy Markdown
Contributor

@andrewd-zededa andrewd-zededa commented Jan 10, 2026

Description

Break out to allow the main loop to restart k3s.
Set a default timeout in kubernetes component upgrade path.

PR dependencies

None

How to test and validate this PR

Stop k3s while the main cluster-init.sh loop is in Update_CheckClusterComponents. Currently this path will only run on first boot after all components installed and save-var-lib has occurred.

Changelog notes

None

PR Backports

  • 16.0-stable: To be backported.
  • 14.5-stable: No, as the feature is not available there.
  • 13.4-stable: No, as the feature is not available there.

Checklist

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR

And the last but not least:

  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

Please, check the boxes above after submitting the PR in interactive mode.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 28.32%. Comparing base (2281599) to head (3561aa2).
⚠️ Report is 256 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5544      +/-   ##
==========================================
+ Coverage   19.52%   28.32%   +8.79%     
==========================================
  Files          19       18       -1     
  Lines        3021     2256     -765     
==========================================
+ Hits          590      639      +49     
+ Misses       2310     1475     -835     
- Partials      121      142      +21     

☔ 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.

Break out to allow the main loop to restart k3s.
Set a default timeout in kubernetes component upgrade path.

Signed-off-by: Andrew Durbin <andrewd@zededa.com>
@andrewd-zededa andrewd-zededa marked this pull request as ready for review January 24, 2026 06:54
@andrewd-zededa andrewd-zededa changed the title Handle k3s restarts in k3s components update path. eve-k: Handle k3s restarts in k3s components update path. Jan 24, 2026
@andrewd-zededa
Copy link
Copy Markdown
Contributor Author

For the PR Build (amd64, kvm, generic) failure:

The self-hosted runner lost communication with the server. Verify the machine is running and has a healthy network connection....

Comment thread pkg/kube/update-component/upgrades.go
@andrewd-zededa andrewd-zededa requested a review from rene January 30, 2026 22:34
Copy link
Copy Markdown

@zedi-pramodh zedi-pramodh left a comment

Choose a reason for hiding this comment

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

LGTM

@eriknordmark eriknordmark merged commit cf1885d into lf-edge:master Jan 31, 2026
64 of 67 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.

4 participants