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

Add Design for Allowing Instance-Level Resource Status Restore #8403

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 for #8204

Please indicate you've done the following:

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

add changelog file

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

typo fix

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

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.95%. Comparing base (1fbd22f) to head (d0621c7).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8403      +/-   ##
==========================================
- Coverage   58.96%   58.95%   -0.02%     
==========================================
  Files         367      367              
  Lines       38895    38902       +7     
==========================================
  Hits        22933    22933              
- Misses      14500    14507       +7     
  Partials     1462     1462              

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

1. Controller managing specific Resources
- A resource controller identifies that a specific instance of a resource should have its status restored due to particular dependencies
- The controller automatically sets the `velero.io/restore-status: true` annotation on the resource.
- During restore, Velero restores the status of this instance, while leaving other resources unaffected.
Copy link
Contributor

Choose a reason for hiding this comment

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

Will velero also annotate that it had restored the status on the resource? That would help with debugging why a resource is a certain status if a controller did not expect its resouce status to be modified by other controllers (velero).

Copy link
Collaborator Author

@shubham-pampattiwar shubham-pampattiwar Nov 13, 2024

Choose a reason for hiding this comment

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

I think current source of truth is the Restore CR spec as well as the label on instance, and IMHO that is sufficient to indicate for why the status was restored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants