Add failover channel events to activity journal
This commit is contained in:
@@ -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': [],
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user