Skip to content

Commit 531ce8a

Browse files
authored
Merge pull request #78 from arangodb/scale-up-fix
Fix scale-up
2 parents d85dea4 + d7a4f0a commit 531ce8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/deployment/reconcile/plan_executor.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ func (d *Reconciler) ExecutePlan(ctx context.Context) (bool, error) {
6464
Msg("Failed to start action")
6565
return false, maskAny(err)
6666
}
67+
// action.Start may have changed status, so reload it.
68+
status = d.context.GetStatus()
69+
// Update status according to result on action.Start.
6770
if ready {
6871
// Remove action from list
6972
status.Plan = status.Plan[1:]
@@ -91,6 +94,8 @@ func (d *Reconciler) ExecutePlan(ctx context.Context) (bool, error) {
9194
return false, maskAny(err)
9295
}
9396
if ready {
97+
// action.CheckProgress may have changed status, so reload it.
98+
status = d.context.GetStatus()
9499
// Remove action from list
95100
status.Plan = status.Plan[1:]
96101
// Save plan update

0 commit comments

Comments
 (0)