-
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
oci: add pouch default runtime spec #2411
oci: add pouch default runtime spec #2411
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2411 +/- ##
==========================================
+ Coverage 69.11% 69.32% +0.21%
==========================================
Files 278 279 +1
Lines 18689 18820 +131
==========================================
+ Hits 12916 13047 +131
- Misses 4297 4299 +2
+ Partials 1476 1474 -2
|
@@ -0,0 +1,194 @@ | |||
package oci |
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.
too many packages in pouch directory,can we merge them?
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.
Give some advise ? @rudyfly
I have checked |
@rudyfly, any update here? |
@fuweid yes, it need update. I remove LGTM |
/cc @rudyfly |
LGTM |
use pouch default runtime spec, instead of containerd default spec, compare to containerd spec, we remove Root, Process(Env Cmd NoNewPrivileges User Rlimits), Linux(CgroupsPath), this should not be exist in default spec, remove Mount(/run), this is not used, add allowed device, add cgroup mount. Signed-off-by: Ace-Tang <aceapril@126.com>
change shm size in mount option instead of append one more size in option. remove set shm-size in user-define mount, since if the mount destination duplicate with runtime spec, it cause a error. Signed-off-by: Ace-Tang <aceapril@126.com>
Signed-off-by: Ace-Tang <aceapril@126.com>
Update with fix
and add a test for default shm size, @rudyfly |
use pouch default runtime spec, instead of containerd default spec,
compare to containerd spec, we remove Root, Process(Env Cmd
NoNewPrivileges User Rlimits), Linux(CgroupsPath), this should not
be exist in default spec, remove Mount(/run), this is not used, add
allowed device, add cgroup mount.
Signed-off-by: Ace-Tang aceapril@126.com
Ⅰ. Describe what this PR did
use pouch default runtime spec, instead of containerd default spec,
compare to containerd spec, we remove Root, Process(Env Cmd
NoNewPrivileges User Rlimits), Linux(CgroupsPath), this should not
be exist in default spec, remove Mount(/run), this is not used, add
allowed device, add cgroup mount.
Ⅱ. Does this pull request fix one issue?
fix #2116 , and base on PR #2271 , close #2115
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
no.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews
For the default runtime spec pouch used, I will post an explanation, if have doubt with the new spec , please wait some time.