Skip to content

Commit b13aab9

Browse files
committed
kube-apiserver/leaderelection: remove klog noise
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
1 parent a2106b5 commit b13aab9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/controlplane/controller/leaderelection/election.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"github.com/blang/semver/v4"
2424
v1 "k8s.io/api/coordination/v1"
2525
v1alpha1 "k8s.io/api/coordination/v1alpha1"
26-
"k8s.io/klog/v2"
2726
"k8s.io/utils/clock"
2827
)
2928

@@ -37,11 +36,6 @@ func pickBestLeaderOldestEmulationVersion(candidates []*v1alpha1.LeaseCandidate)
3736
electee = c
3837
}
3938
}
40-
if electee == nil {
41-
klog.Infof("pickBestLeader: none found")
42-
} else {
43-
klog.Infof("pickBestLeader: %s %s", electee.Namespace, electee.Name)
44-
}
4539
return electee
4640
}
4741

0 commit comments

Comments
 (0)