mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
fix trafficIncrease calls when using confirmPromotion
Signed-off-by: ta924@yahoo.com <ta924@yahoo.com>
This commit is contained in:
@@ -456,7 +456,10 @@ func (c *Controller) advanceCanary(name string, namespace string) {
|
||||
// strategy: Canary progressive traffic increase
|
||||
if c.nextStepWeight(cd, canaryWeight) > 0 {
|
||||
// run hook only if traffic is not mirrored
|
||||
if !mirrored {
|
||||
if !mirrored &&
|
||||
(cd.Status.Phase != flaggerv1.CanaryPhasePromoting &&
|
||||
cd.Status.Phase != flaggerv1.CanaryPhaseWaitingPromotion &&
|
||||
cd.Status.Phase != flaggerv1.CanaryPhaseFinalising) {
|
||||
if promote := c.runConfirmTrafficIncreaseHooks(cd); !promote {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user