-
Notifications
You must be signed in to change notification settings - Fork 40k
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
add Ceph FS volume plugin #6649
Conversation
"10.16.154.82:0", | ||
"10.16.154.83:0" | ||
] | ||
} |
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.
nit: Add new line.
func (plugin *cephfsPlugin) newBuilderInternal(spec *api.Volume, ep *api.Endpoints, podRef *api.ObjectReference, mounter mount.Interface, exe exec.Interface) (volume.Builder, error) { | ||
id := spec.Cephfs.RadosUser | ||
if id == "" { | ||
id = "admin" |
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.
nit: Can you move all the strings to be const variables at the top of the file?
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.
Why is this defaulted here and not in the API defaults files? There may be a legit reason, but I want to understand
Thanks for all the awesome work @rootfs. Just a few nits. I would really like to have end to end tests for these plugins. I opened a separate issue to discuss that. |
// Optional: RadosUser is the rados user name, default is admin | ||
RadosUser string `json:"user"` | ||
// Optional: SecretFile is the path to key file for user, default is /etc/ceph/user.secret | ||
SecretFile string `json:"secrete_file"` |
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.
s/secrete/secret
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain @ixdy. |
ok to test |
I'm concerned that the 'secrets' issues in here are just not resolved - this needs to resolved ASAP or miss 1.0 |
I thought I've missed the train. I'll shape it up soon. |
17a4257
to
2044fbd
Compare
@vishh @thockin @smarterclayton @markturansky @pmorie ready for your comments. Thanks |
8d1b0c5
to
5df7b37
Compare
GCE e2e build/test passed for commit 8cb07c12b8ced14f8dc6909858edf110280abc28. |
Thanks @rootfs One last file and then please squash your commits. |
@saad-ali squashed, wait for green :) |
Thanks @rootfs LGTM @pmorie @markturansky if you're good, let's get this merged. |
GCE e2e build/test passed for commit 4a4c510e54b267320dca899f48f4c007386377f7. |
@saad-ali I took a look today. I think we're good to go. We can support it from here. LGTM. |
@markturansky there are other json to yaml conversion in examples, let's get them in next PR(s) |
SGTM |
Adding LGTM label |
@rootfs needs rebase (sorry!) |
dad1124
to
20c284a
Compare
Signed-off-by: Huamin Chen <hchen@redhat.com>
@brendandburns done, thanks! |
GCE e2e build/test passed for commit 20c284a541ec391353b769314e033df2decca57b. |
GCE e2e build/test passed for commit dad1124b97f4026eb59b68b2da3aa6850646b083. |
GCE e2e build/test passed for commit fe559f2. |
Labelling this PR as size/XL |
Merging since the github api flaked and this was skipped. |
add Ceph FS volume plugin
@vishh @thockin
this is functionally ready. I understand Endpoints is still under discussion.