Skip to content

Commit

Permalink
check there is indeed an upgrade route (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sun-star authored Jan 8, 2025
1 parent f13c141 commit dedcb63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/resource/utils/connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func getSysClient(c client.Client, logger *logr.Logger, obcluster *v1alpha1.OBCl
sysClient, err := operation.GetOceanbaseOperationManager(s)
var checkConnectionErr error
if obcluster.Status.Status != clusterstatus.New && err == nil && sysClient != nil {
sysClient.Logger = logger
_, checkConnectionErr = sysClient.ListServers(context.Background())
}
if err == nil && sysClient != nil && checkConnectionErr == nil {
Expand Down

0 comments on commit dedcb63

Please sign in to comment.