MAQPNADocs

maqpna preflight

Check a cluster before installing MAQPNA (read-only; exit 3 when a check fails)

Operateplugin: maqpna-install-o json | yaml

Synopsis#

maqpna preflight [--profile dev|prod|sovereign-eu] [-f values.yaml] [--set K=V] [--chart oci://...|DIR] [--version V]
                 [-n maqpna-system] [--kube-context C] [--strict] [-o table|json|yaml]

Description#

Takes the same chart and value flags as 'maqpna install' and evaluates the values that install would use. Nothing is created.

Flags#

FlagTypeDescriptionDefault
--chartstringchart: oci:// reference, directory, .tgz, or a chart name with --repooci://<release-registry>/charts/maqpna
--debugswitchprint Helm's debug log to stderrnone
-f, --valuesstringvalues file (repeatable)none
--kube-contextstringkubeconfig context (default: the maqpna context's)none
-n, --namespacestringnamespace of the MAQPNA control plane (the Helm release)maqpna-system
--passwordstringregistry/repository password (env MAQPNA_CHART_PASSWORD)none
--plain-httpswitchpull the chart over plain HTTP (in-cluster test registries)none
--profilestringvalues profile shipped with the chart: dev|prod|sovereign-eu (lowest priority)none
--releasestringHelm release namemaqpna
--repostringchart repository URL (with --chart NAME)none
--setstringset a value, KEY=VAL (repeatable)none
--set-filestringset a value from a file, KEY=PATH (repeatable)none
--set-jsonstringset a JSON value, KEY=JSON (repeatable)none
--set-stringstringset a string value, KEY=VAL (repeatable)none
--strictswitchexit 3 on warnings toonone
--timeoutdurationtimeout of Kubernetes operations (CRDs Established, --wait)10m0s
--usernamestringregistry/repository username (env MAQPNA_CHART_USERNAME)none
--versionstringchart version (default: this CLI's version)none

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

Examples#

maqpna preflight --profile dev
maqpna preflight --profile prod -f values.yaml --strict

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).
  • Prints a table by default; -o json or -o yaml print the data, and --jq EXPR filters the JSON.
  • Exits 3 when the check fails or a result does not match (see exit codes below), so scripts and CI can act on it.

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)

Terminal demo#

maqpna preflight --help.cast

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