-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Ensure only endpoints are specified in oc idle
#10335
Conversation
As discussed with Solly, waiting on a test case before merging |
2b90072
to
8ff6422
Compare
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.
[test] |
Evaluated for origin test up to 8ff6422 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7750/) |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7769/) (Image: devenv-rhel7_4805) |
Evaluated for origin merge up to 8ff6422 |
When you call
oc idle
with only names, it treats those names asendpoints. However, if you manually specify a different resource
in "resource/name" format,
oc idle
would panic, as it was expectingonly 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