-
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
sync controller: don't delete API objects that are new/in-progress/etc. #705
Comments
Is the v0.10.0 milestone soon enough? Is it ok to release v0.9.2 without the fix? |
this is a fix to carlisia's PR that got merged yesterday |
You'll create a release-0.9 branch based off of v0.9.1 and then get #704 on to it? |
release-0.9 already exists (created it in order to do v0.9.1), and yes, will get just #704 onto it to release v0.9.2. Writing changelog up now. |
@skriss this makes sense. I'll add a few test cases that are not |
Fixes vmware-tanzu#705 Signed-off-by: Carlisia <[email protected]>
Fixes #705 Signed-off-by: Carlisia <[email protected]>
backups with
.spec.phase
of "", New, InProgress should be excluded from thedeleteUnused
func.backups with
.spec.phase
of FailedValidation -- I think it makes sense to exclude them as well. This ensure we don't delete the API obj before a user can see why it failed validation. It will still be GC'ed according to its TTL. We could possibly look at GC'ing backups that failed validation more quickly, but I don't think it's important for now.backups with
.spec.phase
of Failed - these should be in object storage (just metadata + logs) -- so the existing code won't delete them, unless the upload of metadata to object storage fails. I'm tempted to exclude these fromdeleteUnused
as well, as it could cause confusion for the user if a backup fails, uploading metadata/logs fail, and then the backup API obj just disappears.So I think the net result of this is
deleteUnused
should only processCompleted
backups.@carlisia WDYT?
The text was updated successfully, but these errors were encountered: