kubectl:fix namespace missing in kubectl rollout undo

Kubernetes-commit: 186a326fb3a9cd0dd91098cc94b9f1f8f1536ed3
This commit is contained in:
lojies 2022-08-11 10:59:09 +08:00 committed by Kubernetes Publisher
parent 008de8b458
commit 98416d7c8a
1 changed files with 1 additions and 1 deletions

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