mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
kubectl:fix namespace missing in kubectl rollout undo
This commit is contained in:
parent
f5956716e3
commit
186a326fb3
@ -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