mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-02-22 15:19:12 +00:00
Merge pull request #133051 from rata/userns-record-pod-error
kubelet/userns: Print podUID on errors
This commit is contained in:
@@ -186,7 +186,7 @@ func MakeUserNsManager(logger klog.Logger, kl userNsPodsManager, idsPerPod *int6
|
||||
for _, podUID := range found {
|
||||
logger.V(5).Info("reading pod from disk for user namespace", "podUID", podUID)
|
||||
if err := m.recordPodMappings(logger, podUID); err != nil {
|
||||
return nil, fmt.Errorf("record pod mappings: %w", err)
|
||||
return nil, fmt.Errorf("record pod mappings for existing pod %q: %w", podUID, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user