Skip to content

Commit

Permalink
fix: workload scale-in process was incorrectly skipped (#7560)
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Rookie authored Jun 19, 2024
1 parent 825515c commit 015ee14
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions controllers/apps/transformer_component_workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,6 @@ func (r *componentWorkloadOps) expandVolume() error {
// horizontalScale handles workload horizontal scale
func (r *componentWorkloadOps) horizontalScale() error {
its := r.runningITS
if its.Status.ReadyReplicas == r.synthesizeComp.Replicas {
return nil
}
ret := r.horizontalScaling(r.synthesizeComp, its)
if ret == 0 {
if err := r.postScaleIn(); err != nil {
Expand Down

0 comments on commit 015ee14

Please sign in to comment.