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

Vsphere: list snapshot by description #1555

Merged
merged 14 commits into from
Aug 16, 2022

Conversation

AKhoria
Copy link
Contributor

@AKhoria AKhoria commented Jul 15, 2022

Change Overview

Add alternative way to list snapshots in Fcd provider by using description field

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

@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 15, 2022
@AKhoria AKhoria changed the title Ankhoria/vshpere test list snapshots Vsphere: list snapshot by description Jul 15, 2022
@AKhoria AKhoria requested a review from bathina2 July 19, 2022 17:05
pkg/blockstorage/vmware/vmware.go Outdated Show resolved Hide resolved
pkg/blockstorage/vmware/vmware.go Outdated Show resolved Hide resolved
pkg/blockstorage/vmware/vmware.go Outdated Show resolved Hide resolved
pkg/blockstorage/vmware/vmware.go Outdated Show resolved Hide resolved
pkg/blockstorage/vmware/vmware.go Show resolved Hide resolved
@AKhoria AKhoria force-pushed the ankhoria/vshpere-test-list-snapshots branch 2 times, most recently from 1c769aa to 0e36f86 Compare July 21, 2022 13:25
@AKhoria AKhoria force-pushed the ankhoria/vshpere-test-list-snapshots branch from 0e36f86 to babe899 Compare July 21, 2022 14:07
@ihcsim
Copy link
Contributor

ihcsim commented Jul 21, 2022

Code change LGTM. @carlbraganza @bathina2 PTAL and see if it's mergeable. Thanks.

@AKhoria AKhoria force-pushed the ankhoria/vshpere-test-list-snapshots branch from b83aae4 to 26b775e Compare July 25, 2022 12:26
return res, err
}

func (p *FcdProvider) getCreatedSnapshot(ctx context.Context, description string, volID string, notEarlierThan time.Time) interface{} {
Copy link
Contributor

@carlbraganza carlbraganza Jul 29, 2022

Choose a reason for hiding this comment

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

Why a return type of interface{}? You are treating the returned value as a bool in the calling function so use that type!

Copy link
Contributor Author

@AKhoria AKhoria Aug 1, 2022

Choose a reason for hiding this comment

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

We are treating its as Types.ID, I've changed the code to returnung Types.ID explicitly

Copy link
Contributor

@carlbraganza carlbraganza left a comment

Choose a reason for hiding this comment

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

Looking pretty good. I still have a question or two...

Kanister automation moved this from In Progress to Reviewer approved Aug 16, 2022
@AKhoria AKhoria added the kueue label Aug 16, 2022
@mergify mergify bot merged commit 23fb171 into master Aug 16, 2022
@mergify mergify bot deleted the ankhoria/vshpere-test-list-snapshots branch August 16, 2022 20:31
Kanister automation moved this from Reviewer approved to Done Aug 16, 2022
r4rajat pushed a commit to r4rajat/kanister that referenced this pull request Aug 28, 2022
* vmware ListSnapshot by description

* vmware ListSnapshot by description

* vmware check if failed snapshot creation created snapshot

* vmware check if failed snapshot creation created snapshot

* vmware check if failed snapshot creation created snapshot

* vmware moving snapshot description out of loop

* fix by review

* fix by review

* add comments

* fix by review

* fix by review

* fix by review

* fix by review

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
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.

None yet

4 participants