skip reconcile cluster if not join federation (#3021)
Signed-off-by: Jeff <jeffzhang@yunify.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user