maqpna rollout
Manage the rollout of agents: status, history, restart (kubectl rollout)
Synopsis#
maqpna rollout status ag/NAME | agent NAME [-n NS] [--watch=true|false] [--timeout 5m]
maqpna rollout history ag/NAME [-n NS]
maqpna rollout restart ag/NAME [-n NS] [--yes]Description#
Agents keep no revision history and run no ReplicaSet. status waits until the operator has observed the Agent's current generation and reports it Ready. history prints that generation (and the kubernetes.io/change-cause annotation). restart stamps maqpna.com/restartedAt on the Agent and restarts the sandbox pods of its running sessions (the sandbox controller re-creates them; in-memory agent state is lost), so it asks first. undo, pause and resume do not apply: change the Agent with apply/edit, or suspend sessions with maqpna session suspend.
Subcommands#
maqpna rollout statusWait until the operator has observed an agent's generation and reports it Ready
maqpna rollout historyShow an agent's current generation and change cause
maqpna rollout restartRestart the sandbox pods of an agent's running sessions
Examples#
maqpna rollout status ag/coder -n team-a
maqpna rollout restart agent coder -n team-a --yesWhat happens when you run it#
- 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) |