MAQPNADocs

maqpna rollback

Roll the Helm release back to an earlier revision

Operateplugin: maqpna-install-o json | yaml

Synopsis#

maqpna rollback [REVISION] [--wait] [--dry-run] [--force] [--release maqpna] [-n NS] [--timeout 10m]

Description#

REVISION defaults to the previous revision ('maqpna status' lists them). The CRDs are not rolled back. Rollback is refused when an installed CRD stores a version the target revision's chart does not define (the old operator could not read those objects); --force overrides.

Flags#

FlagTypeDescriptionDefault
--debugswitchprint Helm's debug log to stderrnone
--dry-runswitchcheck and print the plan; change nothingnone
--forceswitchroll back even when CRD stored versions would be unknown to the target revisionnone
--kube-contextstringkubeconfig context (default: the maqpna context's)none
-n, --namespacestringnamespace of the MAQPNA control plane (the Helm release)maqpna-system
--releasestringHelm release namemaqpna
--timeoutdurationtimeout of Kubernetes operations (CRDs Established, --wait)10m0s
--waitswitchwait until every workload is readynone

The global flags (--context, -o, --no-color, ...) work with every command.

Examples#

maqpna rollback --dry-run
maqpna rollback 3 --wait

What happens when you run it#

  • Runs the lifecycle plugin maqpna-install (next to maqpna or on PATH), which drives the Helm v3 SDK against the cluster of your kubeconfig (--kubeconfig, --kube-context).
  • --dry-run: check and print the plan; change nothing.
  • --force: roll back even when CRD stored versions would be unknown to the target revision.
  • --wait: wait until every workload is ready.
  • 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 rollback --help.cast

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