-
Notifications
You must be signed in to change notification settings - Fork 2k
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
-json option on jobs status command #18925
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @geovannyAvelar! I know this is still in draft but just a heads up that the approach you've got here is essentially what the existing nomad job inspect
does. The goal described in #16566 is to have the whole command's output in some JSON-structured way, which includes a lot of ancillary information like the allocations, deployments, etc.
f9f439b
to
baeea87
Compare
Hello @tgross! I made some changes. Now when |
1616699
to
c78cd30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great @geovannyAvelar. To get this merged:
- Run
make cl
to add a changelog entry - Add documentation for the new command flag in
website/content/docs/commands/job/status.mdx
- Mark the PR as ready-for-review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I've made a minor adjustment to the changelog entry. Once CI is green I'll get this merged for the next 1.7.x release. Thanks @geovannyAvelar!
Bah, sorry @geovannyAvelar, it looks like I led you astray with the |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
#16566
This modification dumps the entire
job
struct in JSON format. I don't know if just dumps the entire struct is the better approach, if not, i can expose specific fields.