kubectl:fix namespace missing in kubectl rollout undo

This commit is contained in:
lojies 2022-08-11 10:59:09 +08:00
parent f5956716e3
commit 186a326fb3

View File

@ -124,7 +124,7 @@ func (r *DeploymentRollbacker) Rollback(obj runtime.Object, updatedAnnotations m
return printTemplate(&rsForRevision.Spec.Template)
}
if deployment.Spec.Paused {
return "", fmt.Errorf("you cannot rollback a paused deployment; resume it first with 'kubectl rollout resume deployment/%s' and try again", name)
return "", fmt.Errorf("you cannot rollback a paused deployment; resume it first with 'kubectl rollout resume' and try again")
}
// Skip if the revision already matches current Deployment