Add support privilege when create service#1129
Conversation
| PullOptions pull_options = 10; | ||
|
|
||
| // Privileged give extended privileges to the container. | ||
| bool Privileged = 11; |
There was a problem hiding this comment.
Field names in protobuf should be lowercase (privileged). They automatically get converted to go-style CamelCase names when the Go code is generated.
There was a problem hiding this comment.
@aaronlehmann Thanks for the review. I will modify this now. :)
c68ad23 to
9342392
Compare
|
@aaronlehmann Review again. Thanks |
Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
9342392 to
e5fa1d9
Compare
Current coverage is 55.09%@@ master #1129 diff @@
==========================================
Files 77 77
Lines 12079 12080 +1
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 6658 6655 -3
- Misses 4505 4508 +3
- Partials 916 917 +1
|
|
@jimmyxian Adding privileged greatly impacts the security model. Proper considerations need to be made before adding support for this operation. |
|
I think this was a pull request before its time. There will come a day when we add Closing. Feel free to reopen later on (or right now), if you disagree. |
|
The demand for |
|
@aluzzardi What about the profile proposal? |
|
I strongly urge us not to take the easy way out on this one. This will haunt us forever. If the demand is strong, I suggest we prioritize coming up with decent profiles, or at least an early extensible version that fits the use-case. |
|
I think we should add |
|
@mgoelzer There are no required changes for the profile model. The profile mode hardwires |
|
What I don't like about profiles is that now "privileged" is just a string. The behavior becomes not portable. |
|
@jimmyxian not merge? |
|
Have any steps been made towards this? What about the related Personally, I believe this should have been merged. Mirroring the current I tend to view swarm as nothing more than a control layer for docker. Given this, my suggestion is that swarm mode should mirror as much of the docker functionality as possible (i.e. - just store and pass on every My opinion is obviously biased. Could we get this re-opened for discussion? |
|
Is there any progress on this to support |
|
ping |
Implement: #1030
Signed-off-by: Xian Chaobo xianchaobo@huawei.com