chore: revert extra param added to logs

This commit is contained in:
kaveh 2026-05-05 11:59:59 +02:00
parent 9f3253114a
commit 9de9edf220
4 changed files with 2 additions and 8 deletions

View file

@ -350,8 +350,6 @@ linters:
contextual k8s.io/kubernetes/test/e2e/dra/.*
contextual k8s.io/kubernetes/test/images/sample-device-plugin/.*
contextual k8s.io/kubernetes/pkg/kubelet/.*
# Temporary carve-outs for PR1 split safety: these files still have legacy global klog calls.
# TODO: remove each exclusion as follow-up PRs migrate the file to contextual logging.
sorted:
# Installed there by hack/verify-golangci-lint.sh.
path: _output/local/bin/sorted.so

View file

@ -363,8 +363,6 @@ linters:
contextual k8s.io/kubernetes/test/e2e/dra/.*
contextual k8s.io/kubernetes/test/images/sample-device-plugin/.*
contextual k8s.io/kubernetes/pkg/kubelet/.*
# Temporary carve-outs for PR1 split safety: these files still have legacy global klog calls.
# TODO: remove each exclusion as follow-up PRs migrate the file to contextual logging.
sorted:
# Installed there by hack/verify-golangci-lint.sh.
path: _output/local/bin/sorted.so

View file

@ -65,5 +65,3 @@ contextual k8s.io/kubernetes/pkg/securitycontext/.*
contextual k8s.io/kubernetes/test/e2e/dra/.*
contextual k8s.io/kubernetes/test/images/sample-device-plugin/.*
contextual k8s.io/kubernetes/pkg/kubelet/.*
# Temporary carve-outs for PR1 split safety: these files still have legacy global klog calls.
# TODO: remove each exclusion as follow-up PRs migrate the file to contextual logging.

View file

@ -245,10 +245,10 @@ func (kl *Kubelet) cleanupOrphanedPodDirs(logger klog.Logger, pods []*v1.Pod, ru
}
// Rmdir the pod dir, which should be empty if everything above was successful
logger.V(3).Info("Orphaned pod found, removing", "podUID", uid, "path", podDir)
logger.V(3).Info("Orphaned pod found, removing", "podUID", uid)
if err := syscall.Rmdir(podDir); err != nil {
cleanupFailed = true
logger.Error(err, "Failed to remove orphaned pod dir", "podUID", uid, "path", podDir)
logger.Error(err, "Failed to remove orphaned pod dir", "podUID", uid)
orphanRemovalErrors = append(orphanRemovalErrors, fmt.Errorf("orphaned pod %q found, but error occurred when trying to remove the pod directory: %v", uid, err))
}
if cleanupFailed {