mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #111795 from lojies/addnamespaceforkubectlrollback
Remove specific command suggestion from kubectl rollout undo error message
This commit is contained in:
commit
3c025280c9
@ -124,7 +124,7 @@ func (r *DeploymentRollbacker) Rollback(obj runtime.Object, updatedAnnotations m
|
|||||||
return printTemplate(&rsForRevision.Spec.Template)
|
return printTemplate(&rsForRevision.Spec.Template)
|
||||||
}
|
}
|
||||||
if deployment.Spec.Paused {
|
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
|
// Skip if the revision already matches current Deployment
|
||||||
|
Loading…
Reference in New Issue
Block a user