feat(updater): support updates after verified SeaweedFS migration
This commit is contained in:
@@ -5,13 +5,15 @@ export type UpdateState = {
|
||||
export type UpdateJob = UpdateState & {
|
||||
progress?: UpdateState; error?: { code: string; message: string };
|
||||
plan?: { version: string; revision: string; previousVersion?: string; updateAvailable: boolean;
|
||||
requiresComposeAdoption: boolean; estimatedBackupBytes?: number; retiredServices: string[] };
|
||||
requiresComposeAdoption: boolean; estimatedBackupBytes?: number; retiredServices: string[];
|
||||
storageProvider?: 'minio' | 'seaweedfs'; storageImageRetained?: boolean };
|
||||
}
|
||||
export type UpdateLogs = { requestId: string; logs: { source: 'service' | 'events' | 'commands'; content: string; truncated: boolean }[] }
|
||||
type Overview = {
|
||||
acceptingRequests: boolean; engine: UpdateState; request?: UpdateJob;
|
||||
installed: { version?: string }; backend: { version: string; revision: string };
|
||||
capabilities?: { requestLogs: boolean };
|
||||
storage?: { provider: 'seaweedfs'; migrationPending: boolean };
|
||||
}
|
||||
type Submission = { command: 'check' | 'apply'; body: { requestId: string; version?: string; checkRequestId?: string } }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user