forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
Cinder volumetype support #1
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
Open
rootfs
wants to merge
11
commits into
jsafrane:dynprov2
Choose a base branch
from
rootfs:cinder-dyn
base: dynprov2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ff68db7
Add API objects
jsafrane ca3fefe
Regenerate all API objects
jsafrane 2be2154
Add new class annotation interpretation
jsafrane 358fb57
Add controller logic
jsafrane 0a836e1
Add controller unit tests.
jsafrane 90893d0
Add AWS plugin
jsafrane da36c17
Gce
jsafrane 1b5038f
Rework volume plugin probing.
jsafrane ef97bfe
Update integration test
jsafrane 4a9c374
Update e2e test
jsafrane d8b9181
create cinder volumes with VolumeType
rootfs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -660,7 +660,7 @@ func (os *OpenStack) getVolume(diskName string) (volumes.Volume, error) { | |
| } | ||
|
|
||
| // Create a volume of given size (in GiB) | ||
| func (os *OpenStack) CreateVolume(name string, size int, tags *map[string]string) (volumeName string, err error) { | ||
| func (os *OpenStack) CreateVolume(name string, size int, opt *map[string]string, tags *map[string]string) (volumeName string, err error) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use named parameters (or |
||
|
|
||
| sClient, err := openstack.NewBlockStorageV1(os.provider, gophercloud.EndpointOpts{ | ||
| Region: os.region, | ||
|
|
@@ -675,6 +675,10 @@ func (os *OpenStack) CreateVolume(name string, size int, tags *map[string]string | |
| Name: name, | ||
| Size: size, | ||
| } | ||
| if opt != nil { | ||
| opts.VolumeType = (*opt)["VolumeType"] | ||
| opts.Availability = (*opt)["Availability"] | ||
| } | ||
| if tags != nil { | ||
| opts.Metadata = *tags | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this part should not be part of this PR, or did I screw something up when generating code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the original branch didn't build on my side, so i rebased to then latest upstream master.