From 1ea2e22734868fe80670207d3bdf77b58374adc0 Mon Sep 17 00:00:00 2001 From: Robert Kwolek Date: Tue, 17 Nov 2020 16:30:45 +0100 Subject: [PATCH] fix: full weight => total weight --- pkg/controller/scheduler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/scheduler.go b/pkg/controller/scheduler.go index 059a92fc..069273a0 100644 --- a/pkg/controller/scheduler.go +++ b/pkg/controller/scheduler.go @@ -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) {