未验证 提交 87e567ea 编写于 作者: Z zryfish 提交者: GitHub

fix cluster controller bug (#2049)

上级 dc6c9cc5
...@@ -319,7 +319,7 @@ func (c *ClusterController) syncCluster(key string) error { ...@@ -319,7 +319,7 @@ func (c *ClusterController) syncCluster(key string) error {
} }
c.updateClusterCondition(cluster, initializedCondition) c.updateClusterCondition(cluster, initializedCondition)
if !reflect.DeepEqual(oldCluster.Spec, cluster.Spec) { if !reflect.DeepEqual(oldCluster, cluster) {
cluster, err = c.clusterClient.Update(cluster) cluster, err = c.clusterClient.Update(cluster)
if err != nil { if err != nil {
klog.Errorf("Error updating cluster %s, error %s", cluster.Name, err) klog.Errorf("Error updating cluster %s, error %s", cluster.Name, err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册