-
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
add -json
and -t
options to inspection related cmds
#15894
Comments
Hi @noahehall and thanks for raising this. I agree and think this would be really useful, and therefore will add it to our backlog. |
Hi @jrasell , do you have a list of nomad cli command that we want to add |
Hi @dttung2905, that sounds great. I have used Those that seem like good initial candidates would be:
Please let me know if you have any questions or thoughts. |
-json
option to inspection related cmds-json
and -t
options to inspection related cmds
I closed some issues that were related to this one. The commands mentioned in them were:
|
Just wanted to post an update of some internal progress that has been made internally over the past few weeks. The following PR's have been raised to add
Thanks to @Juanadelacuesta for this work! |
@Juanadelacuesta excellent work! |
I'm interested in contributing to Nomad, are there any other commands that could use the I saw that |
Hi @BBBmau 👋 That's awesome that you're interested in contributing to Nomad! I think any For $ nomad acl token create | jq -r '.SecretID' > secret_token.txt (for consistency, all #16055 already added these flags to |
Proposal
-json
output for inspection cmds (e.g.nomad server members
) would be awesomenomad node status -verbose -json
can be piped to jq and drilled down to retrieve info,-json
optionUse-cases
List of commands missing flags
nomad acl token update
(refer to Add-json
and-t
flag fornomad acl token create
command #16055 for an example implementation)nomad acl token self
(refer to Add-json
and-t
flag fornomad acl token create
command #16055 for an example implementation)nomad acl token info
(refer to Add-json
and-t
flag fornomad acl token create
command #16055 for an example implementation)nomad acl policy info
nomad job status
(would likely makenomad job inspect
redundant)nomad job scaling-events
nomad operator autopilot get-config
nomad operator gossip keyring list
nomad operator raft list-peers
nomad operator snapshot inspect
The following commands require a Nomad license, and it may not be possible to work on them without one.
nomad license get
nomad sentinel list
nomad sentinel read
The following commands are unusual in the sense they are not backed by a Go struct, so a JSON output would need to be created manually.
nomad alloc fs
(file stat and directory output)nomad operator raft info
The text was updated successfully, but these errors were encountered: