[{
"metadata": {},
"status": "Failure",
"message": "the server could not find the requested resource (post subjectAccessReviews)",
"reason": "NotFound",
"details": {
"kind": "subjectAccessReviews",
"causes": [
{
"reason": "UnexpectedServerResponse",
"message": "unknown"
}
]
},
"code": 404
}]
A number of failures can be better handled when
occommands are run against a Kube server.Version fails to report server (fixed in 1.3)
It should be possible to
oc login <kubeserver> --tokenor provide basic auth credentialsimport-image doesn't recognize a generic error response for post imageStreamImport correctly as "not supported"
status should gracefully degrade (will open PR)
new-app and other "bulk" creation commands return ugly errors:
those errors should be prettier
policy commands give ugly errors:
We should probably have a better message - "the server does not support the resource subjectAccessReview (post)" and we should also handle that specific error on the client: