Skip to content

zedagent: report EtcdSnapshot optional capability#5719

Merged
eriknordmark merged 1 commit intolf-edge:masterfrom
zedi-pramodh:set-etcdsnapshot-support
Apr 7, 2026
Merged

zedagent: report EtcdSnapshot optional capability#5719
eriknordmark merged 1 commit intolf-edge:masterfrom
zedi-pramodh:set-etcdsnapshot-support

Conversation

@zedi-pramodh
Copy link
Copy Markdown

Send the optional capability etcdsnapshot support for eve. In eve-k builds it's always true.

This PR depends on PR #5698
This PR fails to compile until PR5698 is merged.

How to test and validate this PR

eve-k devices now publish this capability which is used by controllers to provide the etcd snapshot functionality for Kubernetes clusters.

Changelog notes

Users can see etcd snapshot and rollback functionality for kubernetes clusters.

Checklist

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

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.

@eriknordmark
Copy link
Copy Markdown
Contributor

PR #5698 is now merged. Go ahead and rebase on master.
Also you have lint commit message issue.

@zedi-pramodh zedi-pramodh force-pushed the set-etcdsnapshot-support branch from d88234d to abcaaf5 Compare April 3, 2026 18:10
@zedi-pramodh zedi-pramodh changed the title [DRAFT] zedagent: report EtcdSnapshot optional capability zedagent: report EtcdSnapshot optional capability Apr 3, 2026
@zedi-pramodh
Copy link
Copy Markdown
Author

Fixed commit lint message and rebased to master.

Copy link
Copy Markdown
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

This doesn't build at all - please check your own PRs for failures!

0.126 Running go vet
0.135 go vet ./...
2.422 # github.com/lf-edge/eve/pkg/pillar/cmd/zedagent
2.422 cmd/zedagent/reportinfo.go:1143:3: unknown field EtcdSnapshot in struct literal of type info.OptionalCapabilities
2.551 # github.com/lf-edge/eve/pkg/pillar/cmd/zedagent
2.551 # [github.com/lf-edge/eve/pkg/pillar/cmd/zedagent]
2.551 vet: cmd/zedagent/reportinfo.go:1143:3: unknown field EtcdSnapshot in struct literal of type info.OptionalCapabilities
2.733 make: *** [Makefile:135: vet] Error 1

For eve-k it will be true.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Pramodh Pallapothu <pramodh@zededa.com>
@zedi-pramodh zedi-pramodh force-pushed the set-etcdsnapshot-support branch from abcaaf5 to 9d779db Compare April 7, 2026 14:39
@zedi-pramodh
Copy link
Copy Markdown
Author

Rebased to master again and recompiled fine.

@github-actions github-actions Bot requested a review from eriknordmark April 7, 2026 14:39
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 28.34%. Comparing base (2281599) to head (9d779db).
⚠️ Report is 449 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5719      +/-   ##
==========================================
+ Coverage   19.52%   28.34%   +8.81%     
==========================================
  Files          19       18       -1     
  Lines        3021     2417     -604     
==========================================
+ Hits          590      685      +95     
+ Misses       2310     1588     -722     
- Partials      121      144      +23     

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

Copy link
Copy Markdown
Contributor

@eriknordmark eriknordmark 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 192b98c into lf-edge:master Apr 7, 2026
26 of 28 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.

2 participants