-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Remove defaults and use runtime-tools/generate for spec #19
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
0f729e5 to
67c375c
Compare
|
No objection to moving to a library to do spec generation, though I think @baude should definitely look this over |
cmd/kpod/spec.go
Outdated
| @@ -110,8 +126,20 @@ func createConfigToOCISpec(config *createConfig) (*spec.Spec, error) { | |||
| configSpec.Linux.Seccomp = &seccompConfig | |||
| } | |||
|
|
|||
| configSpec.Process.Env = config.env | |||
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.
Does the spec generation have a way to add environment and bind/tmpfs mounts? If so maybe we should add a TODO to convert to using that at some point. I don't think we need to migrate to it right away.
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.
Yes, I will convert those over as well.
Signed-off-by: Daniel J Walsh <[email protected]>
Signed-off-by: Daniel J Walsh <[email protected]>
|
I looked it over this weekend, LGTM. |
|
⚡ Test exempted: pull fully rebased and already tested. |
Signed-off-by: Daniel J Walsh <[email protected]> Closes: #19 Approved by: baude
troubleshooting.md: added #19 not enough ids
After Capabilities get merged, we need to switch to using opencontainers/runtime-tools/generate