Merge pull request #5972 from mheon/fix_noinfra

Do not join pod namespaces without an infra ctr
This commit is contained in:
OpenShift Merge Robot
2020-04-24 16:58:24 +02:00
committed by GitHub

View File

@ -26,7 +26,7 @@ func GetDefaultNamespaceMode(nsType string, cfg *config.Config, pod *libpod.Pod)
nsType = strings.ToLower(nsType)
// If the pod is not nil - check shared namespaces
if pod != nil {
if pod != nil && pod.HasInfraContainer() {
podMode := false
switch {
case nsType == "pid" && pod.SharesPID():