Watch
0
0
Fork
You've already forked hyperhive
0

swarmctl: migrate status reads where each service's move stands

This commit is contained in:
atlas 2026-11-22 20:44:16 +01:00 • committed by mara
commit 9396941f24
2 changed files with 1363 additions and 0 deletions

View file

@ -35,6 +35,7 @@ mod forge;
mod inference;
mod interactive;
mod login;
mod migrate;
mod permissions;
mod remote;
mod schedule;
@ -256,6 +257,11 @@ enum Verb {
#[command(subcommand)]
command: BaoVerb,
},
/// Move the swarm's services from this host onto its k3s cluster.
///
/// `docs/4-implementation/k8s/migrate.md` describes the move. Only
/// `status` exists yet, and it moves nothing and creates no pod.
Migrate(migrate::MigrateArgs),
/// Log in to the swarm named by `--swarm` as your own SSO account.
///
/// With no `--swarm` or `SWARMCTL_SWARM`, logs in to
@ -883,6 +889,8 @@ fn main() -> Result<()> {
Verb::Bao {
command: BaoVerb::GrantBootstrap(args),
} => bao::grant_bootstrap(args),
// Needs none of the `SWARMCTL_AUTHELIA_*` values: it reads the cluster and systemd.
Verb::Migrate(args) => migrate::run(args),
// Same socket-resolution reasoning as `Create` above.
Verb::Schedule { command } => schedule(&remote, command),
Verb::Setup(args) => setup_verb(paths, &remote, args),

1355
swarmctl/src/migrate.rs Normal file

File diff suppressed because it is too large Load diff