Add application migration workflow.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user