Skip to content
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 warning message for volume snapshotter in data mover case. #6377

Conversation

blackpiglet
Copy link
Contributor

@blackpiglet blackpiglet commented Jun 9, 2023

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:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

@blackpiglet blackpiglet self-assigned this Jun 9, 2023
@blackpiglet blackpiglet force-pushed the add_warning_in_volume_snapshotter_for_data_mover branch from c2051cc to c8fd96e Compare June 9, 2023 13:01
@codecov-commenter
Copy link

Codecov Report

Merging #6377 (c2051cc) into main (aed8c8e) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head c2051cc differs from pull request most recent head c8fd96e. Consider uploading reports for the commit c8fd96e to get more accurate results

@@            Coverage Diff             @@
##             main    #6377      +/-   ##
==========================================
- Coverage   48.35%   48.35%   -0.01%     
==========================================
  Files         227      227              
  Lines       23346    23349       +3     
==========================================
  Hits        11290    11290              
- Misses      11194    11196       +2     
- Partials      862      863       +1     
Impacted Files Coverage Δ
pkg/backup/item_backupper.go 73.68% <0.00%> (-0.51%) ⬇️

@@ -458,6 +458,13 @@ func (ib *itemBackupper) takePVSnapshot(obj runtime.Unstructured, log logrus.Fie
return nil
}

// TODO: Snapshot data mover is only supported for CSI plugin scenario.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be added after if features.IsEnabled(velerov1api.CSIFeatureFlag), if the snapshot request has been handled by CSI, we will not need this warning

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Modified.

Signed-off-by: Xun Jiang <jxun@vmware.com>
@blackpiglet blackpiglet force-pushed the add_warning_in_volume_snapshotter_for_data_mover branch from c8fd96e to a5c28ad Compare June 12, 2023 09:57
@blackpiglet blackpiglet marked this pull request as ready for review June 12, 2023 09:58
// TODO: Snapshot data mover is only supported for CSI plugin scenario by now.
// Need to add a mechanism to choose running which plugin for resources.
// After that, this warning can be removed.
if boolptr.IsSetToTrue(ib.backupRequest.Spec.SnapshotMoveData) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blackpiglet Maybe also create an issue for this TODO.

@shubham-pampattiwar shubham-pampattiwar merged commit c86018a into vmware-tanzu:main Jun 12, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants