MAQPNADocs

maqpna wait

Wait for a condition on resources (kubectl wait)

Run agents-o json | yaml

Synopsis#

maqpna wait TYPE NAME... | TYPE/NAME... | TYPE (-l SELECTOR | --all) [-n NS]
           --for condition=TYPE[=STATUS] | --for delete | --for create | --for jsonpath='{.status.phase}'=VALUE [--timeout 30s]

Flags#

FlagTypeDescriptionDefault
-A, --all-namespacesswitchall namespacesnone
-R, --recursiveswitchrecurse into sub-directories of -f directoriesnone
--allswitchevery object of the type (in the namespace, or with -A in all)none
-f, --filenamestringmanifest file, directory, URL or - (stdin); repeatablenone
--field-selectorstringfield selector evaluated on any field (spec.agentRef=coder,status.phase!=Failed)none
--forstringcondition=TYPE[=STATUS] | delete | create | jsonpath=PATH[=VALUE]none
--ignore-not-foundswitcha missing named object is not an errornone
-l, --selectorstringlabel selector (e.g. app=coder,tier!=t0); Kubernetes kindsnone
-n, --namespacestringnamespacedefault
--timeoutdurationgive up after this long (exit 1); 0 checks once30s

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

Examples#

maqpna wait --for condition=Ready ag/coder -n team-a
maqpna wait --for jsonpath='{.status.phase}'=Running sess/coder-x1 -n team-a --timeout 5m
maqpna wait --for delete sess -l maqpna.com/agent=coder -n team-a

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)