extensions: support paused deployments

This commit adds support for paused deployments so a user can choose
when to run a deployment that exists in the system instead of having
the deployment controller automatically reconciling it after every
change or sync interval.
This commit is contained in:
Michail Kargakis
2016-01-21 11:12:58 +01:00
parent a14d0fd641
commit 436d2677f9
6 changed files with 110 additions and 19 deletions

View File

@@ -410,6 +410,11 @@ func (dc *DeploymentController) syncDeployment(key string) error {
return nil
}
if d.Spec.Paused {
// Ignore paused deployments
glog.V(4).Infof("Ignoring paused deployment %s/%s", d.Namespace, d.Name)
return nil
}
switch d.Spec.Strategy.Type {
case extensions.RecreateDeploymentStrategyType:
return dc.syncRecreateDeployment(d)