@@ -28,6 +28,7 @@ import (
2828
2929 driver "github.com/arangodb/go-driver"
3030 "github.com/arangodb/go-driver/agency"
31+ "github.com/pkg/errors"
3132 "github.com/rs/zerolog"
3233
3334 api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
@@ -143,20 +144,9 @@ func (a *actionWaitForMemberUp) checkProgressAgent(ctx context.Context) (bool, b
143144// of a cluster deployment (coordinator/dbserver).
144145func (a * actionWaitForMemberUp ) checkProgressCluster (ctx context.Context ) (bool , bool , error ) {
145146 log := a .log
146- c , err := a .actionCtx .GetDatabaseClient (ctx )
147- if err != nil {
148- log .Debug ().Err (err ).Msg ("Failed to create database client" )
149- return false , false , maskAny (err )
150- }
151- cluster , err := c .Cluster (ctx )
147+ h , err := a .actionCtx .GetDeploymentHealth ()
152148 if err != nil {
153- log .Debug ().Err (err ).Msg ("Failed to access cluster" )
154- return false , false , maskAny (err )
155- }
156- h , err := cluster .Health (ctx )
157- if err != nil {
158- log .Debug ().Err (err ).Msg ("Failed to get cluster health" )
159- return false , false , maskAny (err )
149+ return false , false , maskAny (errors .Wrapf (err , "failed to get cluster health" ))
160150 }
161151 sh , found := h .Health [driver .ServerID (a .action .MemberID )]
162152 if ! found {
0 commit comments