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

View File

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