This commit is contained in:
Raymond 2025-05-08 21:27:24 +08:00 committed by GitHub
commit c4fb6d7eec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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