Skip to content

Ensure only endpoints are specified in oc idle #10335

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

Merged
merged 2 commits into from
Aug 11, 2016

Conversation

DirectXMan12
Copy link
Contributor

@DirectXMan12 DirectXMan12 commented Aug 10, 2016

When you call oc idle with only names, it treats those names as
endpoints. However, if you manually specify a different resource
in "resource/name" format, oc idle would panic, as it was expecting
only endpoints. This commit throws an error instead when this situation
is encountered.

This PR also contains a fix for a typo in the oc idle help text.

Fixes bug 1365838
Fixes bug 1365803

@DirectXMan12
Copy link
Contributor Author

DirectXMan12 commented Aug 10, 2016

cc @ncdc @mdshuai

@ncdc
Copy link
Contributor

ncdc commented Aug 10, 2016

As discussed with Solly, waiting on a test case before merging

@ncdc
Copy link
Contributor

ncdc commented Aug 10, 2016

cc @smarterclayton

@DirectXMan12
Copy link
Contributor Author

I added a test in test/cmd

When you call `oc idle` with only names, it treats those names as
endpoints.  However, if you manually specify a different resource
in "resource/name" format, `oc idle` would panic, as it was expecting
only endpoints.  This commit throws an error instead when this situation
is encountered.
The `oc idle` help text mentioned the `-f` flag, which got renamed
to the `--resource-names-file` argument, but did not get changed in
the example.  This fixes that.
@ncdc
Copy link
Contributor

ncdc commented Aug 10, 2016

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 8ff6422

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7750/)

@ncdc
Copy link
Contributor

ncdc commented Aug 10, 2016

[merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Aug 10, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7769/) (Image: devenv-rhel7_4805)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 8ff6422

@openshift-bot openshift-bot merged commit 70adfdf into openshift:master Aug 11, 2016
@DirectXMan12 DirectXMan12 deleted the bug/idling-rc-panic branch August 11, 2016 13:14
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