feat(release): add reversible production cutover gates
This commit is contained in:
@@ -17,6 +17,9 @@ export interface ProductionControlPlaneOptions {
|
||||
readonly upstream?: SafeControlPlaneUpstream;
|
||||
readonly gatewayToken?: string;
|
||||
readonly keychainMetadataCheck?: () => boolean | Promise<boolean>;
|
||||
readonly assetsCheck?: () => boolean | Promise<boolean>;
|
||||
readonly recoveryMarkersCheck?: () => number | Promise<number>;
|
||||
readonly upstreamGatewayCheck?: () => boolean | Promise<boolean>;
|
||||
}
|
||||
|
||||
export function buildProductionControlPlane(
|
||||
@@ -48,6 +51,13 @@ export function buildProductionControlPlane(
|
||||
db,
|
||||
gatewayToken: options.gatewayToken ?? '',
|
||||
keychainMetadataCheck: options.keychainMetadataCheck ?? defaultKeychainMetadataCheck,
|
||||
...(options.assetsCheck ? { assetsCheck: options.assetsCheck } : {}),
|
||||
...(options.recoveryMarkersCheck
|
||||
? { recoveryMarkersCheck: options.recoveryMarkersCheck }
|
||||
: {}),
|
||||
...(options.upstreamGatewayCheck
|
||||
? { upstreamGatewayCheck: options.upstreamGatewayCheck }
|
||||
: {}),
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user