swarmctl: migrate status reads where each service's move stands
This commit is contained in:
parent
c8993bc915
commit
490f6fbdba
2 changed files with 1363 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ mod forge;
|
||||||
mod inference;
|
mod inference;
|
||||||
mod interactive;
|
mod interactive;
|
||||||
mod login;
|
mod login;
|
||||||
|
mod migrate;
|
||||||
mod permissions;
|
mod permissions;
|
||||||
mod remote;
|
mod remote;
|
||||||
mod schedule;
|
mod schedule;
|
||||||
|
|
@ -256,6 +257,11 @@ enum Verb {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
command: BaoVerb,
|
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.
|
/// Log in to the swarm named by `--swarm` as your own SSO account.
|
||||||
///
|
///
|
||||||
/// With no `--swarm` or `SWARMCTL_SWARM`, logs in to
|
/// With no `--swarm` or `SWARMCTL_SWARM`, logs in to
|
||||||
|
|
@ -883,6 +889,8 @@ fn main() -> Result<()> {
|
||||||
Verb::Bao {
|
Verb::Bao {
|
||||||
command: BaoVerb::GrantBootstrap(args),
|
command: BaoVerb::GrantBootstrap(args),
|
||||||
} => bao::grant_bootstrap(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.
|
// Same socket-resolution reasoning as `Create` above.
|
||||||
Verb::Schedule { command } => schedule(&remote, command),
|
Verb::Schedule { command } => schedule(&remote, command),
|
||||||
Verb::Setup(args) => setup_verb(paths, &remote, args),
|
Verb::Setup(args) => setup_verb(paths, &remote, args),
|
||||||
|
|
|
||||||
1355
swarmctl/src/migrate.rs
Normal file
1355
swarmctl/src/migrate.rs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue