mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
pkg/kubelet: Fix userns tests on Windows
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
This commit is contained in:
parent
3f75cae603
commit
b5d6f06fe6
@ -143,6 +143,11 @@ func (kl *Kubelet) getKubeletMappings() (uint32, uint32, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// Windows doesn't support user namespaces, let's return the default mappings.
|
||||
if runtime.GOOS == "windows" {
|
||||
return defaultFirstID, defaultLen, nil
|
||||
}
|
||||
|
||||
_, err := user.Lookup(kubeletUser)
|
||||
if err != nil {
|
||||
var unknownUserErr user.UnknownUserError
|
||||
|
Loading…
Reference in New Issue
Block a user