Skip to content

Commit

Permalink
don't dump StatefulSet spec on update event (pingcap#2844) (pingcap#2874
Browse files Browse the repository at this point in the history
)

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: Yecheng Fu <fuyecheng@pingcap.com>
  • Loading branch information
ti-srebot and cofyc authored Jul 7, 2020
1 parent fadcee6 commit 50d4309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/tidbcluster/tidb_cluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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)
}

Expand Down

0 comments on commit 50d4309

Please sign in to comment.