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 Object-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:

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.97%. Comparing base (1fbd22f) to head (17b8d5a).
Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8403      +/-   ##
==========================================
+ Coverage   58.96%   58.97%   +0.01%     
==========================================
  Files         367      368       +1     
  Lines       38895    38973      +78     
==========================================
+ Hits        22933    22986      +53     
- Misses      14500    14524      +24     
- Partials     1462     1463       +1     

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


🚨 Try these New Features:

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
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

I see. Thanks.

Copy link
Contributor

@weshayutin weshayutin left a comment

Choose a reason for hiding this comment

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

looks good :)

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]>

change instance to object

Signed-off-by: Shubham Pampattiwar <[email protected]>
@shubham-pampattiwar shubham-pampattiwar changed the title Add Design for Allowing Instance-Level Resource Status Restore Add Design for Allowing Object-Level Resource Status Restore Nov 20, 2024
Copy link
Contributor

@weshayutin weshayutin left a comment

Choose a reason for hiding this comment

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

nice and clear. well done!

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.

4 participants