Update Harbor client and gateway integration workflows
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
type StateSnapshot,
|
||||
type StoredState,
|
||||
} from '../../../shared/contracts/state.js';
|
||||
import type { FailoverSnapshot } from '../../../shared/failover.js';
|
||||
|
||||
interface RuntimeState {
|
||||
running?: boolean;
|
||||
@@ -26,6 +27,7 @@ interface StateServiceDependencies {
|
||||
getGatewayAutoState: () => GatewayAutoState;
|
||||
getOperationState: () => OperationState;
|
||||
configExists: () => boolean;
|
||||
getFailoverSnapshot?: () => FailoverSnapshot;
|
||||
}
|
||||
|
||||
function subscriptionHost(value: unknown) {
|
||||
@@ -51,6 +53,7 @@ export function createStateService(dependencies: StateServiceDependencies) {
|
||||
configExists,
|
||||
subscriptionHost: subscriptionHost(storedState.subscriptionUrl),
|
||||
operation: dependencies.getOperationState(),
|
||||
failoverSnapshot: dependencies.getFailoverSnapshot?.(),
|
||||
});
|
||||
return { snapshot, storedState, gatewayAuto, configExists };
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user