mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
chore: revert extra param added to logs
This commit is contained in:
parent
9f3253114a
commit
9de9edf220
4 changed files with 2 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue