Files
kubernetes/pkg
Rodrigo Campos 0b5aa1d491 userns: Use better defaults if idsPerPod are used
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>
2025-10-15 19:49:38 +09:00
..
2025-07-24 08:33:45 +02:00
2025-10-10 23:51:05 +08:00