-
Notifications
You must be signed in to change notification settings - Fork 40k
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
kubectl should return more information on failure #6132
Comments
Have you tried --validate, which reads the swagger? diff and dry-run are already in cli-roadmap.md. |
Another case where more info is desired on failure is update failure. Somewhere we discussed returning the whole object on conflict, for instance. A related discussion is #9569 (comment) |
Related: #8668 |
I would prefer to have this behavior by default for our error object if we On Jul 1, 2015, at 5:30 PM, Brian Grant notifications@github.com wrote: Another case where more info is desired on failure is update failure. — |
@thockin There are no sig labels on this issue. Please add a sig label by: |
@kubernetes/sig-cli-misc |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
/remove-lifecycle stale |
Hi @thockin, @smarterclayton, @bgrant0607 It looks like there currently are some useful error messages given when there are problems with the json. Do you think these are sufficient or is something more detailed needed? Here is what I tried, using kubectl v1.18.0: Test 1: Invalid json (removed " before metadata)
Test 2: Json is valid but does not conform (changed spec to xspec)
|
Thanks. I think we can close this. |
@bgrant0607: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
After making a
kubectl create
call with bad JSON, kubectl would read-back the master's understanding of what I wrote and show me a diff. Something like thatThe text was updated successfully, but these errors were encountered: