add km maintenance tasks aliases

This commit is contained in:
mbecker20
2025-10-05 14:50:20 -07:00
parent 5fd45bbc7b
commit edebe925ff
3 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ pub struct TestAlerter {
//
/// Send a custom alert message to configured Alerters. Response: [Update]
/// Send a custom alert message to configured Alerters. Response: [Update].
/// Alias: `alert`
#[typeshare]
#[derive(
Serialize,
@@ -29,7 +29,7 @@ pub struct ClearRepoCache {}
//
/// **Admin only.** Backs up the Komodo Core database to compressed jsonl files.
/// Response: [Update]
/// Response: [Update]. Aliases: `backup-database`, `backup-db`, `backup`.
///
/// Mount a folder to `/backups`, and Core will use it to create
/// timestamped database dumps, which can be restored using
@@ -56,7 +56,7 @@ pub struct BackupCoreDatabase {}
/// **Admin only.** Trigger a global poll for image updates on Stacks and Deployments
/// with `poll_for_updates` or `auto_update` enabled.
/// Response: [Update]
/// Response: [Update]. Alias: `auto-update`.
///
/// 1. `docker compose pull` any Stacks / Deployments with `poll_for_updates` or `auto_update` enabled. This will pick up any available updates.
/// 2. Redeploy Stacks / Deployments that have updates found and 'auto_update' enabled.
@@ -79,7 +79,7 @@ pub struct GlobalAutoUpdate {}
//
/// **Admin only.** Rotates all connected Server keys.
/// Response: [Update]
/// Response: [Update]. Alias: `rotate-keys`.
#[typeshare]
#[derive(
Debug,
+3
View File
@@ -161,8 +161,11 @@ pub enum Execution {
// MAINTENANCE
ClearRepoCache(ClearRepoCache),
#[clap(alias = "backup-database", alias = "backup-db", alias = "backup")]
BackupCoreDatabase(BackupCoreDatabase),
#[clap(alias = "auto-update")]
GlobalAutoUpdate(GlobalAutoUpdate),
#[clap(alias = "rotate-keys")]
RotateAllServerKeys(RotateAllServerKeys),
// SLEEP