Skip to content

Commit

Permalink
avoid setting partial api enablements in cluster status
Browse files Browse the repository at this point in the history
  • Loading branch information
yi.wu committed Aug 8, 2024
1 parent e7300c3 commit 13e1e4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controllers/status/cluster_status_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ func (c *ClusterStatusController) setCurrentClusterStatus(clusterClient *util.Cl
klog.Errorf("Failed to get any APIs installed in Cluster %s. Error: %v.", cluster.GetName(), err)
} else if err != nil {
klog.Warningf("Maybe get partial(%d) APIs installed in Cluster %s. Error: %v.", len(apiEnables), cluster.GetName(), err)
return err
}
currentClusterStatus.APIEnablements = apiEnables

Expand Down

0 comments on commit 13e1e4c

Please sign in to comment.