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

use GA topology labels for PVs #2219

Merged
merged 4 commits into from Feb 3, 2020
Merged

use GA topology labels for PVs #2219

merged 4 commits into from Feb 3, 2020

Conversation

cpanato
Copy link
Contributor

@cpanato cpanato commented Jan 24, 2020

Signed-off-by: Carlos Panato <ctadeu@gmail.com>
@cpanato cpanato requested a review from skriss January 24, 2020 08:56
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
carlisia
carlisia previously approved these changes Jan 30, 2020
Copy link
Contributor

@carlisia carlisia left a comment

Choose a reason for hiding this comment

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

This lgtm 👍

Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

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

sorry for the delay in reviewing here @cpanato. Added a couple specific comments.

I'd also like to add a unit test case or two for this. We already have a test case here around the existing AZ label:

https://github.com/vmware-tanzu/velero/blob/master/pkg/backup/backup_test.go#L1743-L1776

It'd be nice to:

  • add a test case that confirms that if both labels exist on the PV, the GA one is the one that's used
  • add a test case that confirms that if only the GA label exists on the PV, it's used
  • perhaps just re-title the existing test case to something like "if only the beta label exists on the PV, it's used"

Let me know if you have any questions on the structure of the test; hopefully a copy-paste with some modifications works.

Thanks again for the PR!

pkg/backup/item_backupper.go Outdated Show resolved Hide resolved
pkg/backup/item_backupper.go Outdated Show resolved Hide resolved
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
@cpanato
Copy link
Contributor Author

cpanato commented Jan 31, 2020

@skriss thanks so much for taking your time to review.
Did the changes you requested, please let me know if I'm missing something or what more I can do.

@cpanato cpanato requested a review from skriss January 31, 2020 08:20
Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

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

LGTM -- those unit test cases are exactly what I was looking for, thanks!

@skriss
Copy link
Member

skriss commented Feb 3, 2020

@carlisia please take another look when you get a chance!

Copy link
Contributor

@carlisia carlisia left a comment

Choose a reason for hiding this comment

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

👍 thank you!

@carlisia carlisia merged commit c9bc664 into vmware-tanzu:master Feb 3, 2020
@cpanato cpanato deleted the GH-2173 branch February 6, 2020 20:23
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.

update to use GA toplogy labels for PVs
3 participants