mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-05 00:00:45 +00:00
add km maintenance tasks aliases
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user