Skip to content

Commit

Permalink
Merge pull request #584 from rphillips/backports/96958
Browse files Browse the repository at this point in the history
Bug 1931103: UPSTREAM: 96958: kubelet: remove periodic messages from log-level 2
  • Loading branch information
openshift-merge-robot committed Feb 23, 2021
2 parents 4705571 + d2346f2 commit 69d7e87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkg/kubelet/cm/container_manager_linux.go
Expand Up @@ -983,7 +983,6 @@ func ensureSystemCgroups(rootCgroupPath string, manager cgroups.Manager) error {

pids = append(pids, pid)
}
klog.Infof("Found %d PIDs in root, %d of them are not to be moved", len(allPids), len(allPids)-len(pids))

// Check if we have moved all the non-kernel PIDs.
if len(pids) == 0 {
Expand Down
6 changes: 3 additions & 3 deletions pkg/kubelet/nodestatus/setters.go
Expand Up @@ -26,7 +26,7 @@ import (

cadvisorapiv1 "github.com/google/cadvisor/info/v1"

"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/errors"
Expand Down Expand Up @@ -83,13 +83,13 @@ func NodeAddress(nodeIPs []net.IP, // typically Kubelet.nodeIPs
if err := validateNodeIPFunc(nodeIP); err != nil {
return fmt.Errorf("failed to validate nodeIP: %v", err)
}
klog.V(2).Infof("Using node IP: %q", nodeIP.String())
klog.V(4).Infof("Using node IP: %q", nodeIP.String())
}
if secondaryNodeIPSpecified {
if err := validateNodeIPFunc(secondaryNodeIP); err != nil {
return fmt.Errorf("failed to validate secondaryNodeIP: %v", err)
}
klog.V(2).Infof("Using secondary node IP: %q", secondaryNodeIP.String())
klog.V(4).Infof("Using secondary node IP: %q", secondaryNodeIP.String())
}

if externalCloudProvider {
Expand Down

0 comments on commit 69d7e87

Please sign in to comment.