Skip to content
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

Merged
merged 1 commit into from
Feb 1, 2017

Conversation

mfojtik
Copy link
Contributor

@mfojtik mfojtik commented Jan 31, 2017

Fixes: #11215

@Kargakis PTAL

if _, err = r.dn.DeploymentConfigs(config.Namespace).Update(rolledback); err != nil {
return "", err
}
} else {
Copy link
Contributor

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
}

@0xmichalis
Copy link
Contributor

Test in test-cmd too

@mfojtik
Copy link
Contributor Author

mfojtik commented Jan 31, 2017

[test]

@Kargakis PTAL

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to eb4e5d3

@0xmichalis
Copy link
Contributor

LGTM - merge on green

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13434/) (Base Commit: ed1d332)

@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 1, 2017

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to eb4e5d3

@openshift-bot
Copy link
Contributor

openshift-bot commented Feb 1, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13468/) (Base Commit: 25bc5f7) (Image: devenv-rhel7_5828)

@openshift-bot openshift-bot merged commit 4bba861 into openshift:master Feb 1, 2017
@mfojtik mfojtik deleted the undo-dry-run branch September 5, 2018 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants