-
Notifications
You must be signed in to change notification settings - Fork 950
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
refactor: remove ceph volume plugin #1441
refactor: remove ceph volume plugin #1441
Conversation
e82f91a
to
ffcb893
Compare
ffcb893
to
0cee14c
Compare
Codecov Report
@@ Coverage Diff @@
## master #1441 +/- ##
===========================================
+ Coverage 16.26% 39.99% +23.72%
===========================================
Files 206 249 +43
Lines 13759 16128 +2369
===========================================
+ Hits 2238 6450 +4212
+ Misses 11365 8865 -2500
- Partials 156 813 +657
|
if driver == "" { | ||
driver = types.DefaultBackend | ||
} | ||
|
||
id := types.VolumeID{ |
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 the naming of VolumeID is so bad.
Is there anyway to change this to be a more readable one?
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.
@allencloud I will refactor VolumeID in other PRs later
storage/volume/types/volume_util.go
Outdated
@@ -105,6 +105,41 @@ func buildVolumeConfig(options map[string]string) (*VolumeConfig, error) { | |||
return config, nil | |||
} | |||
|
|||
// NewVolumeFromVolumeID will create an Volume using mountPath, size and VolumeID. | |||
func NewVolumeFromVolumeID(mountPath, size string, id VolumeID) *Volume { |
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.
Change to NewVolumeFromID
?
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.
agree it
|
||
return v | ||
} | ||
|
||
// NewVolume generates a volume based VolumeID | ||
func NewVolume(id VolumeID) (*Volume, error) { |
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.
Change VolumeID
to VolumeCreate
?It means the parameter of create volume.
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.
plan to refactor VolumeID in other PRs
As the ceph volume plugin depends on alibaba storage service, ceph volume plugin can't work outside alibaba. So we will remove the ceph volume. If you need ceph storage, you can use contiv volume plugin (https://github.com/contiv-experimental/volplugin) Signed-off-by: Eric Li <lcy041536@gmail.com>
0cee14c
to
b0b2928
Compare
As the ceph volume plugin depends on alibaba storage service, ceph
volume plugin can't work outside alibaba. So we will remove the ceph
volume. If you need ceph storage, you can use contiv volume plugin
(https://github.com/contiv-experimental/volplugin)
Signed-off-by: Eric Li lcy041536@gmail.com
Ⅰ. Describe what this PR did
As the ceph volume plugin depends on alibaba storage service, ceph volume plugin can't work outside alibaba. So we will remove the ceph volume. If you need ceph storage, you can use contiv volume plugin(https://github.com/contiv-experimental/volplugin)
Ⅱ. Does this pull request fix one issue?
NONE
Ⅲ. Describe how you did it
Remove ceph volume driver
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews