Akihiro Suda
3eda46af12
oci: fix additional GIDs
Test suite:
```yaml
---
apiVersion: v1
kind: Pod
metadata:
name: test-no-option
annotations:
description: "Equivalent of `docker run` (no option)"
spec:
restartPolicy: Never
containers:
- name: main
image: ghcr.io/containerd/busybox:1.28
args: ['sh', '-euxc',
'[ "$(id)" = "uid=0(root) gid=0(root) groups=0(root),10(wheel)" ]']
---
apiVersion: v1
kind: Pod
metadata:
name: test-group-add-1-group-add-1234
annotations:
description: "Equivalent of `docker run --group-add 1 --group-add 1234`"
spec:
restartPolicy: Never
containers:
- name: main
image: ghcr.io/containerd/busybox:1.28
args: ['sh', '-euxc',
'[ "$(id)" = "uid=0(root) gid=0(root) groups=0(root),1(daemon),10(wheel),1234" ]']
securityContext:
supplementalGroups: [1, 1234]
---
apiVersion: v1
kind: Pod
metadata:
name: test-user-1234
annotations:
description: "Equivalent of `docker run --user 1234`"
spec:
restartPolicy: Never
containers:
- name: main
image: ghcr.io/containerd/busybox:1.28
args: ['sh', '-euxc',
'[ "$(id)" = "uid=1234 gid=0(root) groups=0(root)" ]']
securityContext:
runAsUser: 1234
---
apiVersion: v1
kind: Pod
metadata:
name: test-user-1234-1234
annotations:
description: "Equivalent of `docker run --user 1234:1234`"
spec:
restartPolicy: Never
containers:
- name: main
image: ghcr.io/containerd/busybox:1.28
args: ['sh', '-euxc',
'[ "$(id)" = "uid=1234 gid=1234 groups=1234" ]']
securityContext:
runAsUser: 1234
runAsGroup: 1234
---
apiVersion: v1
kind: Pod
metadata:
name: test-user-1234-group-add-1234
annotations:
description: "Equivalent of `docker run --user 1234 --group-add 1234`"
spec:
restartPolicy: Never
containers:
- name: main
image: ghcr.io/containerd/busybox:1.28
args: ['sh', '-euxc',
'[ "$(id)" = "uid=1234 gid=0(root) groups=0(root),1234" ]']
securityContext:
runAsUser: 1234
supplementalGroups: [1234]
```
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-02-10 15:53:00 +09:00
..
2023-01-25 19:28:48 -08:00
2022-12-29 14:25:14 +08:00
2023-01-11 13:12:25 -08:00
2023-01-29 07:49:36 +09:00
2022-07-13 10:54:59 -07:00
2022-09-22 07:24:48 +00:00
2023-01-17 14:26:16 -08:00
2023-02-10 15:53:00 +09:00
2023-01-12 17:00:40 -08:00
2023-01-11 13:12:25 -08:00
2023-01-12 17:00:40 -08:00
2023-01-11 13:03:59 -08:00
2023-01-11 13:12:25 -08:00
2023-01-12 17:00:40 -08:00
2022-12-08 19:31:36 +00:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-12-08 19:31:36 +00:00
2022-07-13 10:54:59 -07:00
2022-12-08 19:31:36 +00:00
2022-11-14 21:07:48 +00:00
2022-07-13 10:54:59 -07:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-10-12 14:41:01 +02:00
2022-10-12 14:41:01 +02:00
2022-07-13 10:54:59 -07:00
2022-09-20 18:38:09 -07:00
2022-07-13 10:54:59 -07:00
2022-12-08 19:31:36 +00:00
2023-01-10 15:41:04 +01:00
2022-07-13 10:54:59 -07:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2023-01-25 19:28:48 -08:00
2022-12-29 14:25:14 +08:00
2023-01-11 13:12:25 -08:00
2023-01-11 13:12:25 -08:00
2022-07-13 10:54:59 -07:00
2023-01-11 13:12:25 -08:00
2023-01-24 20:46:20 +01:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2023-01-17 14:36:21 -08:00
2022-11-11 01:28:27 +00:00
2022-07-13 10:54:59 -07:00
2022-11-11 01:28:27 +00:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2023-01-03 12:47:16 -08:00
2022-11-18 21:13:34 +00:00
2022-11-18 21:13:34 +00:00
2022-12-23 09:23:56 +00:00
2022-07-13 10:54:59 -07:00
2023-01-11 13:12:25 -08:00
2023-01-11 13:12:25 -08:00
2022-12-14 01:47:22 -08:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-12-14 01:47:22 -08:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2023-01-25 19:28:48 -08:00
2022-09-22 14:38:52 +08:00
2022-12-29 14:25:14 +08:00
2022-07-29 16:08:07 -07:00
2022-09-22 14:38:52 +08:00
2023-02-02 14:02:52 -08:00
2022-11-14 21:07:48 +00:00
2022-10-12 14:41:01 +02:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-10-12 14:41:01 +02:00
2022-11-28 12:06:41 -08:00
2022-12-15 11:21:45 -08:00
2022-07-13 10:54:59 -07:00
2022-12-23 09:23:56 +00:00
2022-10-12 13:45:20 +03:00
2022-12-29 14:25:14 +08:00
2022-11-09 12:12:39 +08:00
2022-07-13 10:54:59 -07:00
2023-01-25 19:28:48 -08:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-12-23 09:23:56 +00:00
2022-11-18 21:09:43 +00:00