Merge d9d5dc8f53
into 6554cfcf08
This commit is contained in:
commit
c4fb6d7eec
|
@ -242,7 +242,7 @@ func (h *WorkloadHandler) handleDeployment(newObj, oldObj *apps.Deployment) (boo
|
|||
if newObj.Spec.Strategy.Type == apps.RecreateDeploymentStrategyType {
|
||||
modified = true
|
||||
newObj.Spec.Strategy = oldObj.Spec.Strategy
|
||||
klog.Warningf("")
|
||||
klog.Warningf("Cannot modify strategy for deployment %s/%s when deployment's strategy type is Recreate", newObj.Namespace, newObj.Name)
|
||||
}
|
||||
}
|
||||
return modified, nil
|
||||
|
|
Loading…
Reference in New Issue