Merge pull request #111708 from yangjunmyfm192085/fixloginfi
use klog.InfoS instead of klog.V(0).InfoS
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user