From 3808e193d9f2115b029f72d443545095d579d789 Mon Sep 17 00:00:00 2001 From: wangyamei Date: Sat, 12 Feb 2022 17:56:38 +0800 Subject: [PATCH] fix typo for nodelifecycle controller --- pkg/controller/nodelifecycle/node_lifecycle_controller.go | 2 +- pkg/controller/nodelifecycle/scheduler/taint_manager.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/controller/nodelifecycle/node_lifecycle_controller.go b/pkg/controller/nodelifecycle/node_lifecycle_controller.go index d8ef05a9ba4..cfb07d1872d 100644 --- a/pkg/controller/nodelifecycle/node_lifecycle_controller.go +++ b/pkg/controller/nodelifecycle/node_lifecycle_controller.go @@ -653,7 +653,7 @@ func (nc *Controller) doNoScheduleTaintingPass(ctx context.Context, nodeName str return found }) taintsToAdd, taintsToDel := taintutils.TaintSetDiff(taints, nodeTaints) - // If nothing to add not delete, return true directly. + // If nothing to add or delete, return true directly. if len(taintsToAdd) == 0 && len(taintsToDel) == 0 { return nil } diff --git a/pkg/controller/nodelifecycle/scheduler/taint_manager.go b/pkg/controller/nodelifecycle/scheduler/taint_manager.go index 3087e2a687b..23adc6c81d1 100644 --- a/pkg/controller/nodelifecycle/scheduler/taint_manager.go +++ b/pkg/controller/nodelifecycle/scheduler/taint_manager.go @@ -103,7 +103,7 @@ func deletePodHandler(c clientset.Interface, emitEventFunc func(types.Namespaced return func(ctx context.Context, args *WorkArgs) error { ns := args.NamespacedName.Namespace name := args.NamespacedName.Name - klog.V(0).InfoS("NoExecuteTaintManager is deleting pod", "pod", args.NamespacedName.String()) + klog.InfoS("NoExecuteTaintManager is deleting pod", "pod", args.NamespacedName.String()) if emitEventFunc != nil { emitEventFunc(args.NamespacedName) } @@ -160,7 +160,7 @@ func NewNoExecuteTaintManager(ctx context.Context, c clientset.Interface, getPod recorder := eventBroadcaster.NewRecorder(scheme.Scheme, v1.EventSource{Component: "taint-controller"}) eventBroadcaster.StartStructuredLogging(0) if c != nil { - klog.V(0).InfoS("Sending events to api server") + klog.InfoS("Sending events to api server") eventBroadcaster.StartRecordingToSink(&v1core.EventSinkImpl{Interface: c.CoreV1().Events("")}) } else { klog.Fatalf("kubeClient is nil when starting NodeController") @@ -184,7 +184,7 @@ func NewNoExecuteTaintManager(ctx context.Context, c clientset.Interface, getPod // Run starts NoExecuteTaintManager which will run in loop until `stopCh` is closed. func (tc *NoExecuteTaintManager) Run(ctx context.Context) { - klog.V(0).InfoS("Starting NoExecuteTaintManager") + klog.InfoS("Starting NoExecuteTaintManager") for i := 0; i < UpdateWorkerSize; i++ { tc.nodeUpdateChannels = append(tc.nodeUpdateChannels, make(chan nodeUpdateItem, NodeUpdateChannelSize))