Add application migration workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
keyhan
2026-05-19 00:31:29 +03:30
parent fda8384a5c
commit 41a276d16d
14 changed files with 1145 additions and 6 deletions
+38
View File
@@ -304,6 +304,44 @@ export interface ClusterAllocationLog {
createdAt: string;
}
export type ApplicationMigrationStatus =
| 'queued'
| 'running'
| 'completed'
| 'failed'
| 'rolling_back'
| 'rolled_back';
export interface ApplicationMigrationEvent {
id: string;
migrationId: string;
step: string;
level: 'info' | 'warn' | 'error';
message: string;
metadata?: Record<string, any>;
createdAt: string;
}
export interface ApplicationMigrationJob {
id: string;
applicationId: string;
requestedBy: string;
sourceClusterId: string;
targetClusterId: string;
sourceCluster?: Cluster;
targetCluster?: Cluster;
status: ApplicationMigrationStatus;
attempts: number;
maxAttempts: number;
currentStep?: string;
errorMessage?: string;
metadata?: Record<string, any>;
startedAt?: string;
completedAt?: string;
createdAt: string;
updatedAt: string;
}
export interface PodInfo {
name: string;
status: string;