-
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
Modify the volume helper logic. #7794
Modify the volume helper logic. #7794
Conversation
b221ca8
to
be31633
Compare
863d9b2
to
a7f464a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7794 +/- ##
==========================================
+ Coverage 58.67% 58.79% +0.11%
==========================================
Files 345 345
Lines 28743 28764 +21
==========================================
+ Hits 16866 16911 +45
+ Misses 10448 10425 -23
+ Partials 1429 1428 -1 ☔ View full report in Codecov by Sentry. |
d1d775f
to
d956114
Compare
933d049
to
60e647c
Compare
7063ba9
to
07d2fb4
Compare
278d856
to
f1aafb6
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.
Thanks a bunch @blackpiglet Added a few minor comments. In addition to them I think there is one case that we need to cover:
- If a volume has a matching
snapshot
action and at the same time the user also specifiesdefaultVolumesToFSBackups: true
then the snapshot would be skipped by CSI plugin, we need to modify the logic here I believe:velero/pkg/backup/actions/csi/pvc_action.go
Line 136 in 49eab81
isFSUploaderUsed, err := podvolume.IsPVCDefaultToFSBackup(
Thanks. Modified. |
f1aafb6
to
cdb4588
Compare
@@ -64,14 +63,6 @@ func (p *pvcBackupItemAction) AppliesTo() (velero.ResourceSelector, error) { | |||
} | |||
|
|||
func (p *pvcBackupItemAction) validateBackup(backup velerov1api.Backup) (valid bool) { | |||
// Do nothing if volume snapshots have not been requested in this backup |
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.
This means all the BIA plugins should not check backup.Spec.SnapshotVolumes
, we may need to add this to release notes so as to advice the 3rd plugins to remove this check, cc @reasonerjt
2e1c28e
to
bbeed25
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.
@blackpiglet PR looks good, just added one comment on removal of unused function.
bbeed25
to
eed8fa1
Compare
Signed-off-by: Xun Jiang <[email protected]>
eed8fa1
to
a91d2cb
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
Thank you for contributing to Velero!
Please add a summary of your change
Does your change fix a particular issue?
Fixes #(issue)
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.