MAQPNADocs

maqpna approvals

List pending approvals, and approve or deny them

Govern-o json | yaml

Synopsis#

maqpna approvals list    --gateway URL [--status pending] [-n NS] [--oidc-token-file F]
maqpna approvals approve --gateway URL ID [--oidc-token-file F | --approver NAME] [--note TEXT]
maqpna approvals deny    --gateway URL ID [--oidc-token-file F | --approver NAME] [--note TEXT]
maqpna approvals get ID [--gateway URL]
maqpna approvals watch [--gateway URL] [--status pending|all] [-n NS] [--interval 2s] [--timeout D] [--exit-on-first]

Subcommands#

Examples#

maqpna approvals list --gateway https://gateway.example.eu
maqpna approvals approve --gateway https://gateway.example.eu 4f2a9c --note "checked the diff"
maqpna approvals deny --gateway https://gateway.example.eu 4f2a9c --note "wrong repository"
maqpna approvals watch --exit-on-first

What happens when you run it#

  • Prints a table by default; -o json or -o yaml print the data, and --jq EXPR filters the JSON.

Exit codes#

CodeMeaning
0success
1error (the message says what failed, with a hint when there is one)
2usage error: unknown flag, missing argument or bad value; the synopsis is printed
3a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command)

Terminal demo#

maqpna approvals.cast