mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Golang allows to call methods on a nil object, as long as the methods don't dereference the nil object. This is what we do here. This makes all the userns configurations (idsPerPod or mapping configs in /etc/subuid or /etc/subgid) to be ignored if the feature is off. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>