-
Notifications
You must be signed in to change notification settings - Fork 244
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
No message is generated for component create command with -o json flag #2309
Comments
/kind bug |
successfully reproduced.
i.e. the final message produced by the cli when |
Nope. If the operation is successful it should return what was created. So, in this case, the output should be the same as running |
For See below: ▶ odo component describe -o json
{
"kind": "Error",
"apiVersion": "odo.openshift.io/v1alpha1",
"metadata": {
"creationTimestamp": null
},
"message": "component nodejs-nodejs-ex-geah not pushed to the OpenShift cluster, use `odo push` to deploy the component"
} So in theory, we're unable to actually output everything to the user after using https://github.com/openshift/odo/blob/master/pkg/odo/cli/component/describe.go#L72 Which requires ports to be available to get it.. Which I was hoping to simply drop into the This opens up another issue, we can't actually use https://github.com/openshift/odo/blob/master/pkg/odo/cli/component/describe.go#L72 |
/priority medium |
Not anymore. This PR #2399 implemented /kind feature This is not a bug, but something that was not yet implemented. |
|
Ok corrected:
|
[kind/bug]
What versions of software are you using?
odo version
: MasterHow did you run odo exactly?
Actual behavior
No display of output message
Expected behavior
Json format output or an error message if it is not supported
Any logs, error output, etc?
The text was updated successfully, but these errors were encountered: