mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
pkg/kubelet/userns: Wrap error to get mappings
I needed to wrap the error for debugging, let's just keep this as it is useful. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
This commit is contained in:
parent
4c652757ad
commit
2e0622bf23
@ -127,7 +127,7 @@ func (m *UsernsManager) readMappingsFromFile(pod types.UID) ([]byte, error) {
|
||||
func MakeUserNsManager(kl userNsPodsManager) (*UsernsManager, error) {
|
||||
kubeletMappingID, kubeletMappingLen, err := kl.GetKubeletMappings()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("kubelet mappings: %w", err)
|
||||
}
|
||||
|
||||
if kubeletMappingID%userNsLength != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user