Add failover channel events to activity journal
Build and Deploy Gateway / build-and-push (push) Successful in 24s
Build and Deploy Gateway / deploy (push) Successful in 7s

This commit is contained in:
2026-08-27 14:36:08 +03:00
parent 4a566e082a
commit 8f2f418569
11 changed files with 388 additions and 77 deletions
+8 -1
View File
@@ -6,7 +6,10 @@ export const ACTIVITY_EVENT_TYPES = [
'subscription.added', 'subscription.refreshed', 'subscription.refresh_failed', 'subscription.deleted',
'failover.enabled', 'failover.disabled', 'failover.paused', 'failover.resumed',
'failover.waiting_for_idle', 'failover.switched', 'failover.switch_failed',
'failover.both_unhealthy', 'failover.recovered', 'journal.recovered',
'failover.both_unhealthy',
'failover.primary_unavailable', 'failover.primary_recovered',
'failover.reserve_unavailable', 'failover.reserve_recovered',
'failover.recovered', 'journal.recovered',
] as const;
export type ActivityEventType = typeof ACTIVITY_EVENT_TYPES[number];
@@ -49,6 +52,10 @@ const ALLOWED_DATA_KEYS: Record<ActivityEventType, readonly string[]> = {
'failover.switched': ['fromRole', 'toRole', 'primaryLabel', 'reserveLabel', 'reason', 'manual'],
'failover.switch_failed': ['fromRole', 'toRole', 'reason', 'errorCode'],
'failover.both_unhealthy': ['reason'],
'failover.primary_unavailable': ['role', 'reason'],
'failover.primary_recovered': ['role', 'reason'],
'failover.reserve_unavailable': ['role', 'reason'],
'failover.reserve_recovered': ['role', 'reason'],
'failover.recovered': ['role', 'reason'],
'journal.recovered': [],
};
+3 -3
View File
@@ -1,7 +1,7 @@
export const HARBOR_VERSIONS = Object.freeze({
macClient: '0.30.6',
gatewayClient: '0.31.6',
gatewayBackend: '0.31.0',
macClient: '0.31.0',
gatewayClient: '0.32.0',
gatewayBackend: '0.32.0',
});
export interface ParsedVersion {