-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add existingResourcePolicy
to Restore API
#4628
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 existingResourcePolicy
to Restore API
#4628
Conversation
f52cc6f
to
3231f7c
Compare
3231f7c
to
fa5b7a0
Compare
fa5b7a0
to
e98fb4b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to the change to make sure that service accounts get the updated labels, we need to make sure that this is tested for both SAs and other resources, including the "patch only because resource update failed" case. In all cases we need to make sure that we get the right velero labels applied on the first restore attempt (i.e. no prior labels) and that the labels are right on the second restore attempt (i.e. prior labels overwritten)
e98fb4b
to
8f3f795
Compare
Can one more maintainer please take a look at this PR ? |
cc @reasonerjt |
8f3f795
to
1581d97
Compare
961f64d
to
dde5f9b
Compare
@Lyndon-Li @sseago Updated the PR with respect to feedback, made the changes modular as well as added unit tests, please take another look. Thank you ! |
Codecov Report
@@ Coverage Diff @@
## main #4628 +/- ##
==========================================
+ Coverage 41.70% 41.71% +0.01%
==========================================
Files 204 204
Lines 18040 18150 +110
==========================================
+ Hits 7523 7572 +49
- Misses 9956 10007 +51
- Partials 561 571 +10
Continue to review full report at Codecov.
|
4b10666
to
dcfe39d
Compare
add updateall policy option fix updating labels dump updateAll policy option remove updateAll policy refs Signed-off-by: Shubham Pampattiwar <[email protected]> add changelog file Signed-off-by: Shubham Pampattiwar <[email protected]> update docs Signed-off-by: Shubham Pampattiwar <[email protected]> patch labels for sa if policy is update Signed-off-by: Shubham Pampattiwar <[email protected]> fix existingResourcePolicy for serviceaccounts modularize changes and add unit tests Signed-off-by: Shubham Pampattiwar <[email protected]> fix conflicts and update crds.go Signed-off-by: Shubham Pampattiwar <[email protected]> change log level from info to error Signed-off-by: Shubham Pampattiwar <[email protected]> update crds.go Signed-off-by: Shubham Pampattiwar <[email protected]>
dcfe39d
to
e3106f3
Compare
@Lyndon-Li updated the log levels. |
Shubham Pampattiwar has made several contributions to Velero, most recently in designing and implementing two v1.9 features, including the following: - [Add design for enabling multiple label support[(vmware-tanzu#4619) - [Add multiple label selector support to Velero Backup and Restore APIs](vmware-tanzu#4650) - [Add design for enabling support for ExistingResourcePolicy to restore API](vmware-tanzu#4613) - [Add existingResourcePolicy to Restore API](vmware-tanzu#4628) Signed-off-by: Scott Seago <[email protected]>
Shubham Pampattiwar has made several contributions to Velero, most recently in designing and implementing two v1.9 features, including the following: - [Add design for enabling multiple label support](vmware-tanzu#4619) - [Add multiple label selector support to Velero Backup and Restore APIs](vmware-tanzu#4650) - [Add design for enabling support for ExistingResourcePolicy to restore API](vmware-tanzu#4613) - [Add existingResourcePolicy to Restore API](vmware-tanzu#4628) Signed-off-by: Scott Seago <[email protected]>
Shubham Pampattiwar has made several contributions to Velero, most recently in designing and implementing two v1.9 features, including the following: - [Add design for enabling multiple label support](vmware-tanzu#4619) - [Add multiple label selector support to Velero Backup and Restore APIs](vmware-tanzu#4650) - [Add design for enabling support for ExistingResourcePolicy to restore API](vmware-tanzu#4613) - [Add existingResourcePolicy to Restore API](vmware-tanzu#4628) Shubham has also been driving forward the data mover requirements and design discussions for velero 1.10: - [Add datamover design](vmware-tanzu#4768) Signed-off-by: Scott Seago <[email protected]>
Shubham Pampattiwar has made several contributions to Velero, most recently in designing and implementing two v1.9 features, including the following: - [Add design for enabling multiple label support](vmware-tanzu#4619) - [Add multiple label selector support to Velero Backup and Restore APIs](vmware-tanzu#4650) - [Add design for enabling support for ExistingResourcePolicy to restore API](vmware-tanzu#4613) - [Add existingResourcePolicy to Restore API](vmware-tanzu#4628) Shubham has also been driving forward the data mover requirements and design discussions for velero 1.10: - [Add datamover design](vmware-tanzu#4768) Signed-off-by: Scott Seago <[email protected]>
Shubham Pampattiwar has made several contributions to Velero, most recently in designing and implementing two v1.9 features, including the following: - [Add design for enabling multiple label support](vmware-tanzu#4619) - [Add multiple label selector support to Velero Backup and Restore APIs](vmware-tanzu#4650) - [Add design for enabling support for ExistingResourcePolicy to restore API](vmware-tanzu#4613) - [Add existingResourcePolicy to Restore API](vmware-tanzu#4628) Shubham has also been driving forward the data mover requirements and design discussions for velero 1.10: - [Add datamover design](vmware-tanzu#4768) Signed-off-by: Scott Seago <[email protected]>
Thank you for contributing to Velero!
Please add a summary of your change
The PR follows the approach number 1 specified in the ExistingResourcePolicy design and does the following:
existingResourcePolicy
existing-resource-policy
in velero CLI which accepts onlynone
andupdate
as valuesexistingResourcePolicy
option when set by the userDoes your change fix a particular issue?
Fixes #4842
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.