-
Notifications
You must be signed in to change notification settings - Fork 317
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
Fileshare dock discovery code #735
Fileshare dock discovery code #735
Conversation
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.
Please use goimports
to format the code style, you can try make goimports
to do that.
6140c63
to
d28d3e5
Compare
d4d842b
to
d341c11
Compare
aacbb9d
to
5da4079
Compare
fc57655
to
8860af5
Compare
ae813c8
to
1d50786
Compare
02b4535
to
c5e12ed
Compare
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.
Please use make goimports
to format your code style.
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.
please format your code
dd7ee70
to
2001fb4
Compare
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.
lgtm
pkg/model/proto/model.proto
Outdated
@@ -735,6 +735,7 @@ message CreateFileShareOpts { | |||
message DeleteFileShareOpts { | |||
// The uuid of the fileshare, required. | |||
string id = 1; | |||
string profileId = 2; |
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.
Like I said, there is no need to add profileId
here.
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.
Sorry forgot to do the same for delete, now i did
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.
Please fix the error in Line 922 that result.ProfileId
should not equal with opt.GetProfile()
.
pkg/controller/controller.go
Outdated
@@ -154,6 +153,8 @@ func (c *Controller) CreateVolume(contx context.Context, opt *pb.CreateVolumeOpt | |||
opt.PoolId = polInfo.Id | |||
opt.PoolName = polInfo.Name | |||
|
|||
log.V(8).Infof("select pool %v and poolinfo : %v for volume %+v", opt.PoolId, opt.PoolName, vol) |
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.
For debuging log.V(5) is enough.
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.
Done
1c541a1
to
92735a6
Compare
Did the changes as per our discussion and tested. |
4affe24
to
8d8448d
Compare
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.
LGTM
Please update the code |
8d8448d
to
aec9f02
Compare
What this PR does / why we need it:
Dock was discovering always volume driver, to discover fileshare driver this piece of code is required.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Release note: