-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deploy: add support for dc --dry-run to rollout undo #12729
Conversation
pkg/deploy/cmd/rollback.go
Outdated
if _, err = r.dn.DeploymentConfigs(config.Namespace).Update(rolledback); err != nil { | ||
return "", err | ||
} | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: reduce the diff by inverting this
if dryRun {
out := bytes.NewBuffer([]byte("\n"))
kubectl.DescribePodTemplate(rolledback.Spec.Template, out)
return out.String(), nil
}
_, err = r.dn.DeploymentConfigs(config.Namespace).Update(rolledback)
if err != nil {
return "", err
}
Test in test-cmd too |
[test] @Kargakis PTAL |
Evaluated for origin test up to eb4e5d3 |
LGTM - merge on green |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13434/) (Base Commit: ed1d332) |
[merge] |
Evaluated for origin merge up to eb4e5d3 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13468/) (Base Commit: 25bc5f7) (Image: devenv-rhel7_5828) |
Fixes: #11215
@Kargakis PTAL