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

Allowing Object-Level Resource Status Restore #8464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shubham-pampattiwar
Copy link
Collaborator

Thank you for contributing to Velero!

Please add a summary of your change

Design: #8403

Does your change fix a particular issue?

Fixes #8204

Please indicate you've done the following:

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

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

Project coverage is 59.40%. Comparing base (40a95aa) to head (ca9568e).
Report is 162 commits behind head on main.

Files with missing lines Patch % Lines
pkg/restore/restore.go 79.31% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8464      +/-   ##
==========================================
+ Coverage   58.98%   59.40%   +0.42%     
==========================================
  Files         368      370       +2     
  Lines       39000    40016    +1016     
==========================================
+ Hits        23004    23772     +768     
- Misses      14532    14751     +219     
- Partials     1464     1493      +29     

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

Signed-off-by: Shubham Pampattiwar <[email protected]>

add changelog

Signed-off-by: Shubham Pampattiwar <[email protected]>

Update impl according to design

Signed-off-by: Shubham Pampattiwar <[email protected]>

make update

Signed-off-by: Shubham Pampattiwar <[email protected]>
Comment on lines +2544 to +2545
if annotations == nil {
log.Warnf("No restore status specific annotation found for %s, using restore spec setting: %v", kube.NamespaceAndName(obj), shouldRestoreStatus)
Copy link
Member

Choose a reason for hiding this comment

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

The log is misleading.

This logs when annotation of object is nil, not just because restore status specific annotation is not found.

The same log should be used if annotationExists == false below.

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.

Allow resource status restore in a more granular way
3 participants