-
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
Data mover wrong bsl after sync #6533
Data mover wrong bsl after sync #6533
Conversation
d6e1784
to
d804b14
Compare
d804b14
to
6b8840b
Compare
Codecov Report
@@ Coverage Diff @@
## main #6533 +/- ##
==========================================
+ Coverage 60.28% 60.36% +0.07%
==========================================
Files 238 239 +1
Lines 25256 25498 +242
==========================================
+ Hits 15226 15391 +165
- Misses 8976 9036 +60
- Partials 1054 1071 +17
|
@@ -29,19 +29,22 @@ import ( | |||
|
|||
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1" | |||
velerov2alpha1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v2alpha1" | |||
velerov1client "github.com/vmware-tanzu/velero/pkg/generated/clientset/versioned/typed/velero/v1" |
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.
Let's use the controller runtime client instead as we are moving away from the generated clients
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.
Done the changes, thanks.
6b8840b
to
ceac873
Compare
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
ceac873
to
74bf03b
Compare
This PR fixes two issues:
StorageLocation
is not reset to the latest one after backup sync, as a result, when deleting the PVB, the backup deletion controller cannot delete the repo snapshot from the correct backup storage location, so there will be data leak in the repoStorageLocation
is retrieved from the DataUpload CR, while the value in DataUpload CR is not up to date if the BSL's name has changed in the new cluster, as a result, the data mover restore will failAs the fixes:
StorageLocation
to the latest one during backup syncStorageLocation
from the latest backup CR whoseStorageLocation
has been reset during backup syncFix #6534