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

Skipping validation for volumesnapshotlocation for backup if snapshotvolume set to false #2450

Merged
merged 3 commits into from Apr 24, 2020

Conversation

mynktl
Copy link
Contributor

@mynktl mynktl commented Apr 22, 2020

Changes:

  • If backup has snapshotvolume then validateAndGetSnapshotLocations skip validating VSL and returns empty VSL list with success.

Existing behavior:

  • if velero is configured with multiple VSL with the same provider but no default VSL configured, then one needs to provide VSL during backup creation, with snapshotvolume disabled, otherwise backup will fail with status.phase FailedValidation.

If one wants to use restic for the volume backup then he/she doesn't need to provide VSL for the backup.

Signed-off-by: mayank mayank.patel@mayadata.io

@mynktl mynktl marked this pull request as draft April 22, 2020 19:26
…pshotvolume set to false

Signed-off-by: mayank <mayank.patel@mayadata.io>
@mynktl mynktl changed the title Disabling validation for volumesnapshotlocation for backup if snapshotvolume set to false Skipping validation for volumesnapshotlocation for backup if snapshotvolume set to false Apr 23, 2020
@mynktl mynktl marked this pull request as ready for review April 23, 2020 10:50
Signed-off-by: mayank <mayank.patel@mayadata.io>
Copy link
Contributor

@ashish-amarnath ashish-amarnath left a comment

Choose a reason for hiding this comment

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

I have one minor comment suggesting to use some of the helper functions that we have.

Signed-off-by: mayank <mayank.patel@mayadata.io>
@mynktl
Copy link
Contributor Author

mynktl commented Apr 24, 2020

Hi @ashish-amarnath
I've updated the changes according to review comment. PTAL.
Thanks!

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.

This seems reasonable to me. Thanks for adding the test cases!

Copy link
Contributor

@ashish-amarnath ashish-amarnath left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

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.

None yet

3 participants