maqpna context
Manage named contexts: gateway URL, cluster and namespace
Synopsis#
maqpna context list
maqpna context current
maqpna context use NAME
maqpna context set NAME [--gateway URL] [--identity URL] [--attest URL] [--kube-context C] [--kubeconfig F]
[--namespace NS] [--operator-namespace NS] [--oidc-token-file F] [--use]
maqpna context delete NAMEDescription#
Contexts are stored in $MAQPNA_CONFIG (default ~/.config/maqpna/config.yaml). The config file holds no secrets: tokens from maqpna login are stored per context in tokens/<NAME>.json next to it with mode 0600. Select a context per invocation with --context NAME or MAQPNA_CONTEXT.
Subcommands#
maqpna context listList contexts
maqpna context currentPrint the current context
maqpna context useSwitch to a context
maqpna context setCreate or update a context
maqpna context deleteDelete a context
Examples#
maqpna context set prod --gateway https://gateway.example.eu --kube-context prod-eu --namespace team-a --use
maqpna context list
maqpna context use devWhat happens when you run it#
- Prints a table by default;
-o jsonor-o yamlprint the data, and--jq EXPRfilters the JSON.
Exit codes#
| Code | Meaning |
|---|---|
0 | success |
1 | error (the message says what failed, with a hint when there is one) |
2 | usage error: unknown flag, missing argument or bad value; the synopsis is printed |
3 | a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command) |