kubectl:fix namespace missing in kubectl rollout undo
Kubernetes-commit: 186a326fb3a9cd0dd91098cc94b9f1f8f1536ed3
This commit is contained in:
parent
008de8b458
commit
98416d7c8a
|
|
@ -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