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

Commit 815cf0d

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

module-controller/internal/controller/moduledeployment_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,13 @@ func handleInitModuleDeployment(moduleDeployment *v1alpha1.ModuleDeployment, new
214214
)
215215

216216
batchCount := moduleDeployment.Spec.OperationStrategy.BatchCount
217+
useBeta := moduleDeployment.Spec.OperationStrategy.UseBeta
217218
if batchCount <= 0 {
218219
realBatchCount = 1
219220
} else if int32(math.Abs(float64(deltaReplicas))) < batchCount {
220221
realBatchCount = int32(math.Abs(float64(deltaReplicas)))
222+
} else if useBeta {
223+
realBatchCount = batchCount + 1
221224
} else {
222225
realBatchCount = batchCount
223226
}

0 commit comments

Comments
 (0)