mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Quadlet Kube: Add support for userns flag
Move the handling of userns keys from ConvertContainer to a separate method Adjust the method according to the different supported values Use the new method in both ConvertContainer and ConvertKube Pass isUser to ConvertKube as well Add tests Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
@ -336,7 +336,7 @@ func main() {
|
||||
case strings.HasSuffix(name, ".volume"):
|
||||
service, err = quadlet.ConvertVolume(unit, name)
|
||||
case strings.HasSuffix(name, ".kube"):
|
||||
service, err = quadlet.ConvertKube(unit)
|
||||
service, err = quadlet.ConvertKube(unit, isUser)
|
||||
default:
|
||||
Logf("Unsupported file type '%s'", name)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user