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

Better 'oc run' validations #11635

Merged
merged 2 commits into from Oct 31, 2016
Merged

Conversation

fabianofranz
Copy link
Member

Fixes #11605
Upstream PR: kubernetes/kubernetes#35732

Adds more validations to flags that must be mutually exclusive in oc run. For example, --dry-run must not be used with --attach, --stdin, or --tty, that doesn't make sense.

@fabianofranz
Copy link
Member Author

[test]

@fabianofranz
Copy link
Member Author

@openshift/cli-review

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 23f62eb

@liggitt
Copy link
Contributor

liggitt commented Oct 27, 2016

I'm still curious what data flow led to the args being used as a selector and all-namespaces being queried.

@openshift-bot
Copy link
Contributor

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

@fabianofranz
Copy link
Member Author

@liggitt I didn't dig too deep, but I believe it's related to calling AttachablePodForObject with an object that was not really created and doesn't have a namespace set.

@fabianofranz
Copy link
Member Author

with an object that was not really created and doesn't have a namespace set

@liggitt because it only happens with --dry-run

@fabianofranz
Copy link
Member Author

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 23f62eb

@openshift-bot
Copy link
Contributor

openshift-bot commented Oct 31, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10766/) (Base Commit: 8b2d509) (Image: devenv-rhel7_5278)

@openshift-bot openshift-bot merged commit cb88171 into openshift:master Oct 31, 2016
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.

None yet

3 participants