Merge d9d5dc8f53 into 87f7e652ab
This commit is contained in:
commit
de38428b09
|
|
@ -250,7 +250,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