add support for "pid" key

solve #610
convert service.pid to Pod.Spec.HostPid
set Pod.Spec.HostPid to true if service.pid ="host", to false otherwise
update conversion.md on support for the key
This commit is contained in:
gitlawr
2017-05-31 22:39:17 +08:00
parent a6df28f98d
commit 1485ed4479
5 changed files with 90 additions and 3 deletions
+1
View File
@@ -76,6 +76,7 @@ type ServiceConfig struct {
CapAdd []string `compose:"cap_add" bundle:""`
CapDrop []string `compose:"cap_drop" bundle:""`
Expose []string `compose:"expose" bundle:""`
Pid string `compose:"pid" bundle:""`
Privileged bool `compose:"privileged" bundle:""`
Restart string `compose:"restart" bundle:""`
User string `compose:"user" bundle:"User"`