fix: full weight => total weight

This commit is contained in:
Robert Kwolek
2020-11-17 16:30:45 +01:00
parent 2a0473fc9b
commit 1ea2e22734
+1 -1
View File
@@ -405,7 +405,7 @@ func (c *Controller) runPromotionTrafficShift(canary *flaggerv1.Canary, canaryCo
return
}
// increment the primary traffic weight until it reaches 100%/full weight
// increment the primary traffic weight until it reaches total weight
if canaryWeight > 0 {
primaryWeight += canary.GetAnalysis().StepWeightPromotion
if primaryWeight > c.totalWeight(canary) {