-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove backups and restic repos associated with deleted BSL(s) #4377
Remove backups and restic repos associated with deleted BSL(s) #4377
Conversation
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.
Question: will remove the backup, Velero deletes the backup CR only? Or will Velero also deletes the remote backup file?
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.
Please make sure to not use the bad return values
Signed-off-by: F. Gold <fgold@vmware.com>
Signed-off-by: F. Gold <fgold@vmware.com>
Signed-off-by: F. Gold <fgold@vmware.com>
…errors Signed-off-by: F. Gold <fgold@vmware.com>
aa30a4d
to
b6575f5
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.
LGTM
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.
lgtm
…e-tanzu#4377) * Remove backups and restic repos associated with deleted BSL(s) Signed-off-by: F. Gold <fgold@vmware.com> * add changelog Signed-off-by: F. Gold <fgold@vmware.com> * Add PR number to changelog Signed-off-by: F. Gold <fgold@vmware.com> * Fix typo Signed-off-by: F. Gold <fgold@vmware.com> * Only delete backups and restic repos and report success when without errors Signed-off-by: F. Gold <fgold@vmware.com>
…e-tanzu#4377) * Remove backups and restic repos associated with deleted BSL(s) Signed-off-by: F. Gold <fgold@vmware.com> * add changelog Signed-off-by: F. Gold <fgold@vmware.com> * Add PR number to changelog Signed-off-by: F. Gold <fgold@vmware.com> * Fix typo Signed-off-by: F. Gold <fgold@vmware.com> * Only delete backups and restic repos and report success when without errors Signed-off-by: F. Gold <fgold@vmware.com>
Signed-off-by: F. Gold fgold@vmware.com
Summary of change
Added cli logic to look for backups and restic repositories that have the
velero.io/storage-location=<deleted-bsl-name>
label. The Velero client will then delete those backup and restic repos.Regarding tests, I added expectations in @danfengliu's test cases plan where a BSL is deleted (I believe the test case documentation will be published to this Velero repo soon, after it's completed).
I looked for documentation to change, but there is nothing mentioned about deleting BSLs and so nothing to update.
Change fixes an issue
Fixes #2082
Please indicate you've done the following:
/kind changelog-not-required
.site/content/docs/main
.