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

Update RestoreCSISnapshot Function's Argument Check #1553

Merged
merged 4 commits into from
Jul 20, 2022
Merged

Conversation

ihcsim
Copy link
Contributor

@ihcsim ihcsim commented Jul 14, 2022

Change Overview

This PR updates the RestoreCSISnapshot function's argument checks to return an error if the restoreSize argument is zero. This field must be non-empty and greater than zero for CSI snapshot restore to work.

See #1195 (comment) for steps to reproduce the issue.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

…estoreSize

Signed-off-by: Ivan Sim <ivan.sim@kasten.io>
@github-actions
Copy link
Contributor

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@infraq infraq added this to In Progress in Kanister Jul 14, 2022
Copy link
Contributor

@shlokc9 shlokc9 left a comment

Choose a reason for hiding this comment

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

LGTM @ihcsim 👍🏼

Kanister automation moved this from In Progress to Reviewer approved Jul 15, 2022
@ihcsim ihcsim added the kueue label Jul 15, 2022
@mergify mergify bot merged commit a90fa3c into master Jul 20, 2022
Kanister automation moved this from Reviewer approved to Done Jul 20, 2022
@mergify mergify bot deleted the pvc-restored-size branch July 20, 2022 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

[BUG] Restore action fails with OpenEBS cstor CSI Driver
3 participants