controller: update all rs annotations on a scaled rollout

When a new rollout with a different size than the previous size of the
deployment is initiated then only the new replica set will notice the
new size. Old replica sets are not updated by the rollout path.
This commit is contained in:
Michail Kargakis
2016-06-28 13:31:03 +02:00
parent 9b5696b7b4
commit 62afa3de71
2 changed files with 21 additions and 6 deletions

View File

@@ -499,7 +499,11 @@ func (dc *DeploymentController) syncDeployment(key string) error {
}
}
if dc.isScalingEvent(d) {
scalingEvent, err := dc.isScalingEvent(d)
if err != nil {
return err
}
if scalingEvent {
return dc.sync(d)
}