From 50d4309befd02218a0385922ddcc2c26d0351420 Mon Sep 17 00:00:00 2001 From: ti-srebot <66930949+ti-srebot@users.noreply.github.com> Date: Tue, 7 Jul 2020 12:58:37 +0800 Subject: [PATCH] don't dump StatefulSet spec on update event (#2844) (#2874) Signed-off-by: ti-srebot Co-authored-by: Yecheng Fu --- pkg/controller/tidbcluster/tidb_cluster_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/tidbcluster/tidb_cluster_controller.go b/pkg/controller/tidbcluster/tidb_cluster_controller.go index d1b13e68b3..1b9ff4beda 100644 --- a/pkg/controller/tidbcluster/tidb_cluster_controller.go +++ b/pkg/controller/tidbcluster/tidb_cluster_controller.go @@ -360,7 +360,7 @@ func (tcc *Controller) addStatefulSet(obj interface{}) { if tc == nil { return } - klog.V(4).Infof("StatefuSet %s/%s created, TidbCluster: %s/%s", ns, setName, ns, tc.Name) + klog.V(4).Infof("StatefulSet %s/%s created, TidbCluster: %s/%s", ns, setName, ns, tc.Name) tcc.enqueueTidbCluster(tc) } @@ -381,7 +381,7 @@ func (tcc *Controller) updateStatefuSet(old, cur interface{}) { if tc == nil { return } - klog.V(4).Infof("StatefulSet %s/%s updated, %+v -> %+v.", ns, setName, oldSet.Spec, curSet.Spec) + klog.V(4).Infof("StatefulSet %s/%s updated, TidbCluster: %s/%s", ns, setName, ns, tc.Name) tcc.enqueueTidbCluster(tc) }