Watch
0
0
Fork
You've already forked hyperhive
0

swarmctl setup status: show the pending bootstrap re-run for the pods' login

`swarm-bao-k8s-jwt-policy` exits 0 when the bootstrap token lacks
`sys/auth/jwt-k8s`, so a store set up before the node looked fine in
`swarmctl setup status`: the unit is active and nothing marks the root-only
`swarmctl bao grant-bootstrap` re-run as pending.

The unit now keeps /run/swarm-bao-k8s-jwt-pending while it stays off and
removes it before it writes the mount's config. `setup status` reads the file
and shows step 3, "granter bootstrapped", as not done, naming the verb.
`module-eval-k8s` pins the order of the touch, the exit and the removal.
This commit is contained in:
maia 2026-11-25 14:56:39 +01:00 • committed by mara
commit 6acf1012cb

View file

@ -849,6 +849,7 @@ mod tests {
}
.to_owned(),
denied: false,
waits_for_root: false,
}]),
admin_user: Ok(self.user),
agents: Ok(Agents {