mirror of https://github.com/containers/podman.git
play: handle 'private' as 'auto'
currently there is no way to specify the mappings, so at least treat a private user namespace as "auto". Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
61f0230c31
commit
fa2590a97a
|
@ -610,6 +610,10 @@ func (ic *ContainerEngine) playKubePod(ctx context.Context, podName string, podY
|
||||||
} else {
|
} else {
|
||||||
options.Userns = "host"
|
options.Userns = "host"
|
||||||
}
|
}
|
||||||
|
// FIXME: how to deal with explicit mappings?
|
||||||
|
if options.Userns == "private" {
|
||||||
|
options.Userns = "auto"
|
||||||
|
}
|
||||||
} else if podYAML.Spec.HostUsers != nil {
|
} else if podYAML.Spec.HostUsers != nil {
|
||||||
logrus.Info("overriding the user namespace mode in the pod spec")
|
logrus.Info("overriding the user namespace mode in the pod spec")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue