use klog.InfoS instead of klog.V(0).InfoS

This commit is contained in:
JunYang
2022-08-05 09:44:34 +08:00
parent 26842bb0c8
commit 2db4dea565
6 changed files with 19 additions and 19 deletions

View File

@@ -113,7 +113,7 @@ func NewController(
// registers the informers for node changes. This will start synchronization
// of the node and cloud CIDR range allocations.
func (c *Controller) Start(nodeInformer informers.NodeInformer) error {
klog.V(0).InfoS("Starting IPAM controller", "config", c.config)
klog.InfoS("Starting IPAM controller", "config", c.config)
nodes, err := listNodes(c.adapter.k8s)
if err != nil {

View File

@@ -249,7 +249,7 @@ func (gcc *PodGCController) gcOrphaned(ctx context.Context, pods []*v1.Pod, node
if err := gcc.markFailedAndDeletePodWithCondition(ctx, pod, condition); err != nil {
utilruntime.HandleError(err)
} else {
klog.V(0).InfoS("Forced deletion of orphaned Pod succeeded", "pod", klog.KObj(pod))
klog.InfoS("Forced deletion of orphaned Pod succeeded", "pod", klog.KObj(pod))
}
}
}
@@ -298,7 +298,7 @@ func (gcc *PodGCController) gcUnscheduledTerminating(ctx context.Context, pods [
if err := gcc.markFailedAndDeletePod(ctx, pod); err != nil {
utilruntime.HandleError(err)
} else {
klog.V(0).InfoS("Forced deletion of unscheduled terminating Pod succeeded", "pod", klog.KObj(pod))
klog.InfoS("Forced deletion of unscheduled terminating Pod succeeded", "pod", klog.KObj(pod))
}
}
}

View File

@@ -324,7 +324,7 @@ func (al *Allocators) txnAllocClusterIPs(service *api.Service, dryRun bool) (tra
commit: func() {
if !dryRun {
if len(allocated) > 0 {
klog.V(0).InfoS("allocated clusterIPs",
klog.InfoS("allocated clusterIPs",
"service", klog.KObj(service),
"clusterIPs", allocated)
}
@@ -614,7 +614,7 @@ func (al *Allocators) txnUpdateClusterIPs(after After, before Before, dryRun boo
return
}
if len(allocated) > 0 {
klog.V(0).InfoS("allocated clusterIPs",
klog.InfoS("allocated clusterIPs",
"service", klog.KObj(service),
"clusterIPs", allocated)
}