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

cli: add -json flag to support job commands #12591

Merged
merged 2 commits into from
Apr 21, 2022
Merged

cli: add -json flag to support job commands #12591

merged 2 commits into from
Apr 21, 2022

Commits on Apr 21, 2022

  1. cli: add -json flag to support job commands

    While the CLI has always supported running JSON jobs, its support has
    been via HCLv2's JSON parsing. I have no idea what format it expects the
    job to be in, but it's absolutely not in the same format as the API
    expects.
    
    So I ignored that and added a new -json flag to explicitly support *API*
    style JSON jobspecs.
    
    The jobspecs can even have the wrapping {"Job": {...}} envelope or not!
    schmichael committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    7d31474 View commit details
    Browse the repository at this point in the history
  2. docs: fix example for nomad job validate

    We haven't been able to validate inside driver config stanzas ever since
    the move to task driver plugins. 😭
    schmichael committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    413bd49 View commit details
    Browse the repository at this point in the history