MAQPNADocs

maqpna events

Print the Kubernetes events of a session, its sandbox and snapshots

Observe-o json | yaml

Synopsis#

maqpna events SESSION [-n NS] [-w] [--types Warning]

Flags#

FlagTypeDescriptionDefault
--intervaldurationpoll interval with -w2s
-n, --namespacestringnamespacedefault
--typesstringonly these event types (Normal, Warning; repeatable or comma-separated)none
-w, --watchswitchwatch for new eventsnone

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 Warning

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 events --help.cast

This command needs a Kubernetes cluster with MAQPNA installed, so the recording shows its help. Try it against a cluster from Install.