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 b82a9f2 commit 815cf0d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,13 @@ func handleInitModuleDeployment(moduleDeployment *v1alpha1.ModuleDeployment, new
)

batchCount := moduleDeployment.Spec.OperationStrategy.BatchCount
useBeta := moduleDeployment.Spec.OperationStrategy.UseBeta
if batchCount <= 0 {
realBatchCount = 1
} else if int32(math.Abs(float64(deltaReplicas))) < batchCount {
realBatchCount = int32(math.Abs(float64(deltaReplicas)))
} else if useBeta {
realBatchCount = batchCount + 1
} else {
realBatchCount = batchCount
}
Expand Down

0 comments on commit 815cf0d

Please sign in to comment.