fix: wire sentinel sync helpers
This commit is contained in:
@@ -56,6 +56,7 @@ import {
|
||||
secretSourcePaths,
|
||||
sentinelCliSuffix,
|
||||
sentinelPipelineRunName,
|
||||
sentinelProgressEvent,
|
||||
sentinelSourceSnapshotRef,
|
||||
sentinelSourceSnapshotStageRefPrefix,
|
||||
sha256,
|
||||
@@ -83,12 +84,17 @@ import {
|
||||
} from "./hwlab-node-web-sentinel-cicd-shared";
|
||||
import {
|
||||
controlPlaneWaitWarningSeconds,
|
||||
createK8sJobScript,
|
||||
probeK8sJobScript,
|
||||
publishSatisfiedByObservedWarnings,
|
||||
runSentinelPublishJob,
|
||||
runSentinelSourceMirrorSyncJob,
|
||||
sentinelBlockedRemoteResult,
|
||||
sentinelCicdElapsedWarnings,
|
||||
sentinelGitMirrorCacheVolumeFromTarget,
|
||||
sentinelPayloadFromLogs,
|
||||
sentinelRemoteJobTimeoutWarnings,
|
||||
sentinelSourceMirrorSyncShellFromConfig,
|
||||
sentinelSourceMirrorAlreadyPresentResult,
|
||||
sourceMirrorAlreadyReadyWarnings,
|
||||
} from "./hwlab-node-web-sentinel-cicd-jobs";
|
||||
@@ -2212,10 +2218,6 @@ export function withWarnings(payload: Record<string, unknown>, warnings: readonl
|
||||
return merged.length === 0 ? payload : { ...payload, warnings: merged, valuesRedacted: true };
|
||||
}
|
||||
|
||||
function sentinelProgressEvent(event: string, payload: Record<string, unknown>): void {
|
||||
console.error(JSON.stringify({ event, at: new Date().toISOString(), ...payload, valuesRedacted: true }));
|
||||
}
|
||||
|
||||
function installSentinelPublishInterruptHandler(state: SentinelCicdState, context: Record<string, unknown>): () => void {
|
||||
let handled = false;
|
||||
const handler = (signal: string) => {
|
||||
|
||||
Reference in New Issue
Block a user