Skip to content

Commit

Permalink
Merge pull request #190 from olga-mir/fix-promotion-usecase
Browse files Browse the repository at this point in the history
Fix promoting canary when max weight is not a multiple of step
  • Loading branch information
stefanprodan committed May 23, 2019
2 parents 94e5bfc + 9618d2e commit beed636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/scheduler.go
Expand Up @@ -360,7 +360,7 @@ func (c *Controller) advanceCanary(name string, namespace string, skipLivenessCh
c.recordEventInfof(cd, "Advance %s.%s canary weight %v", cd.Name, cd.Namespace, canaryWeight)

// promote canary
if canaryWeight == maxWeight {
if canaryWeight >= maxWeight {
c.recordEventInfof(cd, "Copying %s.%s template spec to %s.%s",
cd.Spec.TargetRef.Name, cd.Namespace, primaryName, cd.Namespace)
if err := c.deployer.Promote(cd); err != nil {
Expand Down

0 comments on commit beed636

Please sign in to comment.