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

Refactor the Azure plugin #206

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

ywk253100
Copy link
Contributor

Both Kopia repository and Azure plugin need to interact with Azure storage. In order to keep in sync with the new features for both these two places and remove duplicated code, PR vmware-tanzu/velero#6686 makes the common code as util functions in Velero repository.

This commit refactors the Azure plugin based on these util functions.

@ywk253100 ywk253100 force-pushed the 230613_refactor branch 2 times, most recently from 69fb023 to 5ab89e1 Compare September 13, 2023 08:58
Both Kopia repository and Azure plugin need to interact with Azure storage. In order to keep in sync with the new features for both these two places and remove duplicated code, PR vmware-tanzu/velero#6686 makes the common code as util functions in Velero repository.

This commit refactors the Azure plugin based on these util functions.

Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
@ywk253100 ywk253100 marked this pull request as ready for review September 20, 2023 03:00
@codecov-commenter
Copy link

Codecov Report

Merging #206 (b7732e8) into main (5ac1aab) will increase coverage by 2.46%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #206      +/-   ##
==========================================
+ Coverage   13.46%   15.92%   +2.46%     
==========================================
  Files           4        3       -1     
  Lines         698      496     -202     
==========================================
- Hits           94       79      -15     
+ Misses        601      414     -187     
  Partials        3        3              
Files Changed Coverage Δ
velero-plugin-for-microsoft-azure/object_store.go 3.30% <0.00%> (+1.11%) ⬆️
...o-plugin-for-microsoft-azure/volume_snapshotter.go 26.27% <0.00%> (+2.82%) ⬆️

github.com/stretchr/testify v1.8.2
github.com/vmware-tanzu/velero v0.0.0-20230727074327-a6d79fc272a2
github.com/stretchr/testify v1.8.4
github.com/vmware-tanzu/velero v1.10.0-rc.1.0.20230920021852-d3e5bb745144
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to reference a Velero RC tag?

Copy link
Contributor Author

@ywk253100 ywk253100 Sep 20, 2023

Choose a reason for hiding this comment

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

This is generated by go cmd automatically when running go get github.com/vmware-tanzu/velero@main.
The tag isn't important as this is a pseudo version and we'll update it to the GA version when making the final release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants