mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
The first UID used for userns mappings needs to be at least the idsPerPod. When idsPerPod is extended to be 65536*2, for example, then the default UID of 65536 doesn't work. While this can be configured by the user, let's just improve the default first UID to be the same as idsPerPod. This makes the default first UID work out of the box if the user just wants to tune that. This also simplifies testing, as we don't need to create a system user and /etc/subuid and /etc/subgid files to test the idsPerPod setting. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>