Skip to content

Manila: add extend and shrink share functionality - #1175

Merged
jtopjian merged 4 commits into
gophercloud:masterfrom
gman0:manila-resize
Aug 3, 2018
Merged

jtopjian merged 4 commits into
gophercloud:masterfrom
gman0:manila-resize

Conversation

@gman0

@gman0 gman0 commented Aug 1, 2018

Copy link
Copy Markdown
Contributor

@coveralls

coveralls commented Aug 1, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 79.184% when pulling ff6f4fe on gman0:manila-resize into d2cd9a0 on gophercloud:master.

@theopenlab-ci

theopenlab-ci Bot commented Aug 1, 2018

Copy link
Copy Markdown

Build failed.

@jtopjian jtopjian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@gman0 Overall looks good - just a few minor changes.

I'm not able to run the acceptance tests at this time. To confirm: you've tested this implementation?

The Builder methods have the following pattern:

To-Resource-Action-Result

I noticed a few other methods aren't following this pattern - no big deal, they can be updated at some point - but let's fix these ones.

Let me know if you have any questions.

// ExtendOptsBuilder allows extensions to add additional parameters to the
// Extend request.
type ExtendOptsBuilder interface {
ToExtendMap() (map[string]interface{}, error)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ToShareExtendMap

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

ToExtendMap() (map[string]interface{}, error)
}

// ExtendOpts contains the options for creation of a Extend request.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about:

ExtendOpts contains options for extending a Share.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

// ShrinkOptsBuilder allows extensions to add additional parameters to the
// Shrink request.
type ShrinkOptsBuilder interface {
ToShrinkMap() (map[string]interface{}, error)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ToShareShrinkMap

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

ToShrinkMap() (map[string]interface{}, error)
}

// ShrinkOpts contains the options for creation of a Shrink request.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about:

ShrinkOpts contains options for shrinking a Share

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@gman0

gman0 commented Aug 2, 2018

Copy link
Copy Markdown
Contributor Author

@jtopjian Thanks for the review! PTAL

To confirm: you've tested this implementation?

Yes, I've tested both extend and shrink operations in our on-site OpenStack cloud.

@theopenlab-ci

theopenlab-ci Bot commented Aug 2, 2018

Copy link
Copy Markdown

Build failed.

@jtopjian jtopjian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - nice work

@jtopjian
jtopjian merged commit 9cdae65 into gophercloud:master Aug 3, 2018
@gman0

gman0 commented Aug 3, 2018

Copy link
Copy Markdown
Contributor Author

Thanks!

@gman0
gman0 deleted the manila-resize branch August 3, 2018 07:27
@kayrus kayrus mentioned this pull request Apr 10, 2020
3 of 9 tasks
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.

3 participants