maqpna uninstall
Uninstall MAQPNA (resources, keys and agent namespaces are kept unless --purge)
Synopsis#
maqpna uninstall [--release maqpna] [-n NS] [--wait] [--dry-run] [--purge] [--yes]Description#
By default the CRDs and all custom resources, the tokens and identity key Secrets (helm.sh/resource-policy: keep) and the agent namespaces stay, so a reinstall picks them up. --purge also deletes the maqpna.com CRDs (which deletes every Agent, AgentSession, ToolPolicy, ... in the cluster), the release's kept Secrets and its agent namespaces. Export the audit ledger first (maqpna audit export).
uninstall asks for confirmation on a terminal; --yes (-y) skips the question, and is required when stdin is not a terminal (scripts, CI).
Flags#
| Flag | Type | Description | Default |
|---|---|---|---|
--debug | switch | print Helm's debug log to stderr | none |
--dry-run | switch | print what would be deleted; change nothing | none |
--kube-context | string | kubeconfig context (default: the maqpna context's) | none |
-n, --namespace | string | namespace of the MAQPNA control plane (the Helm release) | maqpna-system |
--purge | switch | also delete the maqpna.com CRDs (and every custom resource), kept Secrets and agent namespaces | none |
--release | string | Helm release name | maqpna |
--timeout | duration | timeout of Kubernetes operations (CRDs Established, --wait) | 10m0s |
--wait | switch | wait until the release's resources are deleted | none |
-y, --yes | switch | do not ask for confirmation (required when stdin is not a terminal) | none |
The global flags (--context, -o, --no-color, ...) work with every command.
Examples#
maqpna uninstall --dry-run
maqpna uninstall
# In a script: no prompt, everything deleted
maqpna uninstall --purge --yesWhat happens when you run it#
- Runs the lifecycle plugin
maqpna-install(next tomaqpnaor onPATH), which drives the Helm v3 SDK against the cluster of your kubeconfig (--kubeconfig,--kube-context). --dry-run: print what would be deleted; change nothing.--yes: do not ask for confirmation (required when stdin is not a terminal).--wait: wait until the release's resources are deleted.- 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) |
Related commands#
Terminal demo#
This command needs a Kubernetes cluster with MAQPNA installed, so the recording shows its help. Try it against a cluster from Install.