mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue