maqpna api-resources
List the resource types maqpna knows, with short names (kubectl api-resources)
Synopsis#
maqpna api-resources [--namespaced=true|false] [--api-group G] [--source kube|gateway] [--sort-by name|kind] [--no-headers] [-o wide|name|json|yaml]Description#
The maqpna.com kinds come from the CRDs this CLI was built with (their short names and the "maqpna" category work in kubectl too: kubectl get ag, kubectl get maqpna). The gateway's runtime kinds (APIVERSION gateway/v1) are served by the gateway admin API; maqpna get and describe read them, kubectl cannot. ALIASES (-o wide) are names only this CLI accepts.
Flags#
| Flag | Type | Description | Default |
|---|---|---|---|
--api-group | string | only this API group (maqpna.com, gateway) | none |
--cached | switch | ignored (maqpna reads its built-in CRDs) | none |
--namespaced | string | true: namespaced types only; false: cluster-scoped only | none |
--no-headers | switch | omit the header row | none |
--sort-by | string | name | kind | none |
--source | string | kube | gateway | none |
--verbs | string | only types supporting these verbs | none |
The global flags (--context, -o, --no-color, ...) work with every command.
Examples#
maqpna api-resources
maqpna api-resources -o wide
maqpna api-resources --namespaced=false -o nameWhat 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) |