Skip to content

Commit

Permalink
K8SPSMDB-1231: handle no mongod containers in running state error
Browse files Browse the repository at this point in the history
  • Loading branch information
pooknull committed Jan 30, 2025
1 parent 9145638 commit fc61b40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/perconaservermongodb/mgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ func (r *ReconcilePerconaServerMongoDB) reconcileCluster(ctx context.Context, cr

pod, primary, err := r.handleReplsetInit(ctx, cr, replset, pods.Items)
if err != nil {
if errors.Is(err, errNoRunningMongodContainers) {
return api.AppStateInit, nil, nil
}
return api.AppStateInit, nil, errors.Wrap(err, "handleReplsetInit")
}

Expand Down

0 comments on commit fc61b40

Please sign in to comment.