Skip to content
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

odo describe component -o json #5660

Closed
3 tasks
Tracked by #5554 ...
kadel opened this issue Apr 13, 2022 · 1 comment · Fixed by #5720
Closed
3 tasks
Tracked by #5554 ...

odo describe component -o json #5660

kadel opened this issue Apr 13, 2022 · 1 comment · Fixed by #5720
Assignees
Labels
area/json-output Issues or PRs related to JSON output (machine readable output)

Comments

@kadel
Copy link
Member

kadel commented Apr 13, 2022

  • without any additional flags, it describes the current component (devfile in the current directory)
  • can be used with --name to describe other components existing on the cluster
  • --namespace is optional and can be used only with --name flag

non-json output is part of #5661

$ odo describe component -o json
{
  "devfilePath": "/path/to/devfile.yaml",
  "devfileData": {
    "devfile": <content of devfile>
  },
  "supportedOdoFeatures": {
      "dev": true,
      "debug": true,
      "deploy": true
  },
  "devForwardedPorts": [
  { 
    "containerName": "cont1",
    "localPort": 40001,
    "containerPort": 8080,
    "address": "localhost",
  }
  ],
  "runningIn": ["Dev", "Deploy"], # or just "Dev", "Deploy", "Unknown", or []
  "managedBy": "odo"  
}
@feloy feloy added the area/json-output Issues or PRs related to JSON output (machine readable output) label Apr 14, 2022
@kadel kadel moved this to Todo in odo v3-beta1 Apr 27, 2022
@kadel kadel mentioned this issue May 5, 2022
20 tasks
@feloy feloy moved this from Todo to In Progress in odo v3-beta1 May 6, 2022
@valaparthvi
Copy link
Contributor

Why does the output without access to devfile not include data such component type, component name, and namespace? Wouldn't it be helpful?

Repository owner moved this from In Progress to Done in odo v3-beta1 May 9, 2022
@rm3l rm3l added the v3 label Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/json-output Issues or PRs related to JSON output (machine readable output)
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants