Skip to content

Commit

Permalink
check balance nodes return
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolik committed Aug 2, 2024
1 parent 152db68 commit ccd05ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/controller/valkey_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,9 @@ fi
return err
}
r.Recorder.Event(valkey, "Normal", "Updated", fmt.Sprintf("StatefulSet %s/%s is updated (replicas)", valkey.Namespace, valkey.Name))
r.balanceNodes(ctx, valkey, oldnodes, *sts.Spec.Replicas)
if err := r.balanceNodes(ctx, valkey, oldnodes, *sts.Spec.Replicas); err != nil {
return err
}
}

return nil
Expand Down

0 comments on commit ccd05ae

Please sign in to comment.