未验证 提交 44799ae6 编写于 作者: Z zryfish 提交者: GitHub

skip reconcile cluster if not join federation (#3021)

Signed-off-by: NJeff <jeffzhang@yunify.com>
上级 ffa995f2
......@@ -440,6 +440,12 @@ func (c *clusterController) syncCluster(key string) error {
return nil
}
// currently we didn't set cluster.Spec.Enable when creating cluster at client side, so only check
// if we enable cluster.Spec.JoinFederation now
if cluster.Spec.JoinFederation == false {
return nil
}
// save a old copy of cluster
oldCluster := cluster.DeepCopy()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册