mirror of
https://github.com/containers/podman.git
synced 2025-10-25 10:16:43 +08:00
Merge pull request #23679 from ruihe774/pod-userns
quadlet: support user mapping in pod unit
This commit is contained in:
4
test/e2e/quadlet/remap-auto.pod
Normal file
4
test/e2e/quadlet/remap-auto.pod
Normal file
@ -0,0 +1,4 @@
|
||||
## assert-podman-pre-args --userns=auto
|
||||
|
||||
[Pod]
|
||||
RemapUsers=auto
|
||||
9
test/e2e/quadlet/remap-auto2.pod
Normal file
9
test/e2e/quadlet/remap-auto2.pod
Normal file
@ -0,0 +1,9 @@
|
||||
## assert-podman-pre-args "--userns=auto:uidmapping=0:10000:10,uidmapping=10:20000:10,gidmapping=0:10000:10,gidmapping=10:20000:10,size=20"
|
||||
|
||||
[Pod]
|
||||
RemapUsers=auto
|
||||
RemapUid=0:10000:10
|
||||
RemapUid=10:20000:10
|
||||
RemapGid=0:10000:10
|
||||
RemapGid=10:20000:10
|
||||
RemapUidSize=20
|
||||
4
test/e2e/quadlet/remap-keep-id.pod
Normal file
4
test/e2e/quadlet/remap-keep-id.pod
Normal file
@ -0,0 +1,4 @@
|
||||
## assert-podman-pre-args --userns=keep-id
|
||||
|
||||
[Pod]
|
||||
RemapUsers=keep-id
|
||||
11
test/e2e/quadlet/remap-manual.pod
Normal file
11
test/e2e/quadlet/remap-manual.pod
Normal file
@ -0,0 +1,11 @@
|
||||
## assert-podman-pre-args "--uidmap=0:10000:10"
|
||||
## assert-podman-pre-args "--uidmap=10:20000:10"
|
||||
## assert-podman-pre-args "--gidmap=0:10000:10"
|
||||
## assert-podman-pre-args "--gidmap=10:20000:10"
|
||||
|
||||
[Pod]
|
||||
RemapUsers=manual
|
||||
RemapUid=0:10000:10
|
||||
RemapUid=10:20000:10
|
||||
RemapGid=0:10000:10
|
||||
RemapGid=10:20000:10
|
||||
@ -999,11 +999,15 @@ BOGUS=foo
|
||||
Entry("Build - TLSVerify Key", "tls-verify.build"),
|
||||
Entry("Build - Variant Key", "variant.build"),
|
||||
|
||||
Entry("basic.pod", "basic.pod"),
|
||||
Entry("name.pod", "name.pod"),
|
||||
Entry("network.pod", "network.pod"),
|
||||
Entry("podmanargs.pod", "podmanargs.pod"),
|
||||
Entry("Pod - Basic", "basic.pod"),
|
||||
Entry("Pod - Name", "name.pod"),
|
||||
Entry("Pod - Network", "network.pod"),
|
||||
Entry("Pod - PodmanArgs", "podmanargs.pod"),
|
||||
Entry("Pod - NetworkAlias", "network-alias.pod"),
|
||||
Entry("Pod - Remap auto", "remap-auto.pod"),
|
||||
Entry("Pod - Remap auto2", "remap-auto2.pod"),
|
||||
Entry("Pod - Remap keep-id", "remap-keep-id.pod"),
|
||||
Entry("Pod - Remap manual", "remap-manual.pod"),
|
||||
)
|
||||
|
||||
DescribeTable("Running expected warning quadlet test case",
|
||||
|
||||
Reference in New Issue
Block a user