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

Output options for kudo version #549

Closed
kensipe opened this issue Jul 10, 2019 · 2 comments · Fixed by #1657
Closed

Output options for kudo version #549

kensipe opened this issue Jul 10, 2019 · 2 comments · Fixed by #1657

Comments

@kensipe
Copy link
Member

kensipe commented Jul 10, 2019

What would you like to be added:
kudoctl version -o yaml or kudoctl version -o json should be supported.
This would be consistent with k8s:

kubectl version -o json
{
  "clientVersion": {
    "major": "1",
    "minor": "15",
    "gitVersion": "v1.15.0",
    "gitCommit": "e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529",
    "gitTreeState": "clean",
    "buildDate": "2019-06-20T04:49:16Z",
    "goVersion": "go1.12.6",
    "compiler": "gc",
    "platform": "darwin/amd64"
  },
  "serverVersion": {
    "major": "1",
    "minor": "14",
    "gitVersion": "v1.14.3",
    "gitCommit": "5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0",
    "gitTreeState": "clean",
    "buildDate": "2019-06-06T01:36:19Z",
    "goVersion": "go1.12.5",
    "compiler": "gc",
    "platform": "linux/amd64"
  }
}

Why is this needed:
It helps with tool automation to parse versions with jq etc.

@kensipe
Copy link
Member Author

kensipe commented Jul 10, 2019

Needed this for script validation in soak tests. I'm sure there are lots of other benefits.

@kensipe kensipe added this to Ready for Development in KUDO via automation Jul 12, 2019
@alenkacz
Copy link
Contributor

duplicate of #331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
KUDO
  
Ready for Development
Development

Successfully merging a pull request may close this issue.

2 participants