func (tcc *Controller) updateStatefuSet(old, cur interface{}) {
	curSet := cur.(*apps.StatefulSet)
	oldSet := old.(*apps.StatefulSet)
	ns := curSet.GetNamespace()
	setName := curSet.GetName()
	if curSet.ResourceVersion == oldSet.ResourceVersion {
		// Periodic resync will send update events for all known statefulsets.
		// Two different versions of the same statefulset will always have different RVs.
		return
	}

	// If it has a ControllerRef, that's all that matters.
	tc := tcc.resolveTikvClusterFromSet(ns, curSet)
	if tc == nil {
		return
	}
	klog.V(4).Infof("StatefulSet %s/%s updated, %+v -> %+v.", ns, setName, oldSet.Spec, curSet.Spec)
	tcc.enqueueTikvCluster(tc)
}
// updateStatefuSet adds the tikvcluster for the current and old statefulsets to the sync queue.
updateStatefuSet adds the tikvcluster for the current and old statefulsets to the sync queue.
// updateStatefuSet adds the tikvcluster for the current and old statefulsets to the sync queue .
func (tcc *Controller) updateStatefuSet(old, cur interface{}) {
	curSet := cur.(*apps.StatefulSet)
	oldSet := old.(*apps.StatefulSet)
	ns := curSet.GetNamespace()
	setName := curSet.GetName()
	if curSet.ResourceVersion == oldSet.ResourceVersion {
		return
	}
	tc := tcc.resolveTikvClusterFromSet(ns, curSet)
	if tc == nil {
		return
	}
	klog.V(4).Infof("StatefulSet %s/%s updated, %+v -> %+v.", ns, setName, oldSet.Spec, curSet.Spec)
	tcc.enqueueTikvCluster(tc)
}
func ( tcc * Controller ) updateStatefuSet ( old , cur interface { } ) { curSet := cur . ( * apps . StatefulSet ) oldSet := old . ( * apps . StatefulSet ) ns := curSet . GetNamespace ( ) setName := curSet . GetName ( ) if curSet . ResourceVersion == oldSet . ResourceVersion { return } tc := tcc . resolveTikvClusterFromSet ( ns , curSet ) if tc == nil { return } klog . V ( 4 ) . Infof ( " " , ns , setName , oldSet . Spec , curSet . Spec ) tcc . enqueueTikvCluster ( tc ) }
updateStatefuSet adds the tikvcluster for the current and old statefulsets to the sync queue.
updateStatefuSet adds the tikvcluster for the current and old statefulsets to the sync queue .
// Periodic resync will send update events for all known statefulsets. // Two different versions of the same statefulset will always have different RVs. // If it has a ControllerRef, that's all that matters.