swarmctl: migrate status reads where each service's move stands
This commit is contained in:
parent
22db35102a
commit
f34b40e300
2 changed files with 1363 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -913,6 +919,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
1355
swarmctl/src/migrate.rs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue