Fix weight metric report

This commit is contained in:
stefanprodan
2019-03-08 23:28:45 +02:00
parent d87bbbbc1e
commit 86ea172380
+1 -1
View File
@@ -259,7 +259,7 @@ func (c *Controller) advanceCanary(name string, namespace string, skipLivenessCh
c.recordEventWarningf(cd, "%v", err)
return
}
c.recorder.SetWeight(cd, 100, 0)
c.recorder.SetWeight(cd, 0, 100)
if err := c.deployer.SetStatusIterations(cd, cd.Status.Iterations+1); err != nil {
c.recordEventWarningf(cd, "%v", err)