Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
使用usebeta分组分组数+1
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-657667 committed Jan 3, 2024
1 parent 815cf0d commit 2e1dba0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func handleInitModuleDeployment(moduleDeployment *v1alpha1.ModuleDeployment, new
realBatchCount = 1
} else if int32(math.Abs(float64(deltaReplicas))) < batchCount {
realBatchCount = int32(math.Abs(float64(deltaReplicas)))
} else if useBeta {
} else if useBeta && moduleDeployment.Spec.Replicas-1 > 1 {
realBatchCount = batchCount + 1

Check warning on line 223 in module-controller/internal/controller/moduledeployment_controller.go

View check run for this annotation

Codecov / codecov/patch

module-controller/internal/controller/moduledeployment_controller.go#L223

Added line #L223 was not covered by tests
} else {
realBatchCount = batchCount
Expand Down

0 comments on commit 2e1dba0

Please sign in to comment.