summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi/play.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-11 05:56:35 -0400
committerGitHub <noreply@github.com>2020-09-11 05:56:35 -0400
commitd1798d038376bf494f19b1531b9e0450592b24b9 (patch)
tree3b57e8f2834975ce0a3190c4670dfca781bbc73a /pkg/domain/infra/abi/play.go
parente59c3ce1c529eaa26360cf69264bd5c24ee45c6c (diff)
parentb80b95eea0c2f32de6101e558ce5314e1bd08c25 (diff)
downloadpodman-d1798d038376bf494f19b1531b9e0450592b24b9.tar.gz
podman-d1798d038376bf494f19b1531b9e0450592b24b9.tar.bz2
podman-d1798d038376bf494f19b1531b9e0450592b24b9.zip
Merge pull request #7591 from haircommander/play-kube-process-namespace
play/generate: support shareProcessNamespace
Diffstat (limited to 'pkg/domain/infra/abi/play.go')
-rw-r--r--pkg/domain/infra/abi/play.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go
index 47d1c48f2..6dfb52c63 100644
--- a/pkg/domain/infra/abi/play.go
+++ b/pkg/domain/infra/abi/play.go
@@ -132,7 +132,11 @@ func (ic *ContainerEngine) playKubePod(ctx context.Context, podName string, podY
libpod.WithInfraContainer(),
libpod.WithPodName(podName),
}
- // TODO for now we just used the default kernel namespaces; we need to add/subtract this from yaml
+ // TODO we only configure Process namespace. We also need to account for Host{IPC,Network,PID}
+ // which is not currently possible with pod create
+ if podYAML.Spec.ShareProcessNamespace != nil && *podYAML.Spec.ShareProcessNamespace {
+ podOptions = append(podOptions, libpod.WithPodPID())
+ }
hostname := podYAML.Spec.Hostname
if hostname == "" {