-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add support for pid ns #54
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
Conversation
|
Sign this please @rhatdan |
cmd/kpod/spec.go
Outdated
| } | ||
| return libpod.ErrNotImplemented | ||
| /* | ||
| pidNsPath := fmt.Sprintf("/proc/%d/ns/pid", state.Pid) |
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.
Is this commented code needed or will it be added shortly? A TODO comment maybe if it's going to stay?
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.
Should add a TODO.
|
Any changes/additions to the tests needed? |
|
Yes I will add tests. |
|
@rhatdan We have support baked into libpod for sharing namespaces, though it's not turned on yet - see https://github.com/projectatomic/libpod/blob/master/libpod/options.go#L300-L307 |
e78247d to
c5be531
Compare
|
@TomSweeneyRedHat @mheon @umohnani8 @baude PTAL Tests passing. |
|
LGTM |
|
Removed the TODO and added handling of the state.PID call for --pid containers:UUID. |
cmd/kpod/spec.go
Outdated
| @@ -17,6 +17,27 @@ import ( | |||
| "golang.org/x/sys/unix" | |||
| ) | |||
|
|
|||
| func addPidNS(config *createConfig, g *generate.Generator) 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.
Can you add a TODO here to switch to the libpod support for sharing namespaces when that lands?
|
One nit, otherwise LGTM. Tests are failing though. |
8fc94da to
6eaf390
Compare
|
LGTM |
|
☔ The latest upstream changes (presumably 91b406e) made this pull request unmergeable. Please resolve the merge conflicts. |
2618cae to
7559a18
Compare
Signed-off-by: Daniel J Walsh <[email protected]>
|
@rh-atomic-bot r=umohnani8 |
|
📌 Commit 38a49d2 has been approved by |
|
☀️ Test successful - status-papr |
Release: clean the builddir when building
No description provided.