Skip to content

Commit

Permalink
internationalization
Browse files Browse the repository at this point in the history
  • Loading branch information
gaosheng.liang committed Dec 28, 2021
1 parent c5e4d54 commit f06a299
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4,762 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Created by .ignore support plugin (hsz.mobi)
4,407 changes: 0 additions & 4,407 deletions operator.log

This file was deleted.

6 changes: 0 additions & 6 deletions pkg/apis/tdb/v1alpha1/doc.go

This file was deleted.

108 changes: 0 additions & 108 deletions pkg/apis/tdb/v1alpha1/types.go

This file was deleted.

139 changes: 0 additions & 139 deletions pkg/apis/tdb/v1alpha1/zz_generated.deepcopy.go

This file was deleted.

32 changes: 0 additions & 32 deletions pkg/apis/tdb/v1alpha1/zz_generated.defaults.go

This file was deleted.

67 changes: 0 additions & 67 deletions pkg/apis/tdb/v1alpha1/zz_generated.register.go

This file was deleted.

6 changes: 3 additions & 3 deletions pkg/controller/redis/cluster/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ func (c *Controller) createRedisCluster(pods []*corev1.Pod, mp *v1alpha1.RedisCl
klog.Warningf("%s meet %s failed %v", pod.Name, p.Name, err)
}
}
//剔除无效节点
//DELETE INVALID NODE
forgetBadNode(pods, gps_ips, mp.Spec.Secret)
}
//是否需要扩容
//NEED SCALE?
if mp.Spec.Size > mp.Status.Size {
mp.Status.Phase = v1alpha1.RedisUpdateQuota
if rp, err := c.extClient.CacheV1alpha1().RedisClusters(mp.Namespace).UpdateStatus(context.TODO(), mp, metav1.UpdateOptions{}); err != nil {
Expand Down Expand Up @@ -469,7 +469,7 @@ func (c *Controller) createRedisCluster(pods []*corev1.Pod, mp *v1alpha1.RedisCl
klog.Infof("slave %s sync master %s success", slave, master)
time.Sleep(2 * time.Second)
}
//开始扩容
//START SCALE
if err := clusterCheck(mp.Spec.Secret, master); err != nil {
return err
}
Expand Down

0 comments on commit f06a299

Please sign in to comment.