maqpna events
Print the Kubernetes events of a session, its sandbox and snapshots
Synopsis#
maqpna events SESSION [-n NS] [-w] [--types Warning]Flags#
| Flag | Type | Description | Default |
|---|---|---|---|
--interval | duration | poll interval with -w | 2s |
-n, --namespace | string | namespace | default |
--types | string | only these event types (Normal, Warning; repeatable or comma-separated) | none |
-w, --watch | switch | watch for new events | none |
The global flags (--context, -o, --no-color, ...) work with every command.
Examples#
maqpna events fix-test-7k2 -n team-a
maqpna events fix-test-7k2 -n team-a -w --types WarningWhat 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) |
Terminal demo#
This command needs a Kubernetes cluster with MAQPNA installed, so the recording shows its help. Try it against a cluster from Install.