DeploymentController doesn't take any actions when being deleted

This commit is contained in:
gmarek
2016-06-17 13:46:43 +02:00
parent d8958257c4
commit 7815a3e7bc
3 changed files with 26 additions and 0 deletions

View File

@@ -484,6 +484,10 @@ func (dc *DeploymentController) syncDeployment(key string) error {
return err
}
if d.DeletionTimestamp != nil {
return dc.syncStatusOnly(d)
}
if d.Spec.Paused {
return dc.sync(d)
}