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

Commit 2e1dba0

Browse files
committed
使用usebeta分组分组数+1
1 parent 815cf0d commit 2e1dba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module-controller/internal/controller/moduledeployment_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func handleInitModuleDeployment(moduleDeployment *v1alpha1.ModuleDeployment, new
219219
realBatchCount = 1
220220
} else if int32(math.Abs(float64(deltaReplicas))) < batchCount {
221221
realBatchCount = int32(math.Abs(float64(deltaReplicas)))
222-
} else if useBeta {
222+
} else if useBeta && moduleDeployment.Spec.Replicas-1 > 1 {
223223
realBatchCount = batchCount + 1
224224
} else {
225225
realBatchCount = batchCount

0 commit comments

Comments
 (0)