diff --git a/scripts/src/hwlab-node-web-sentinel-cicd-jobs.ts b/scripts/src/hwlab-node-web-sentinel-cicd-jobs.ts index dda18506..d75eefeb 100644 --- a/scripts/src/hwlab-node-web-sentinel-cicd-jobs.ts +++ b/scripts/src/hwlab-node-web-sentinel-cicd-jobs.ts @@ -826,7 +826,7 @@ function sentinelGitopsFiles(state: SentinelCicdState): readonly { path: string; }]; } -function applySentinelArgoApplication(state: SentinelCicdState, timeoutSeconds: number): Record { +export function applySentinelArgoApplication(state: SentinelCicdState, timeoutSeconds: number): Record { const app = state.manifests.find((item) => item.kind === "Application"); if (app === undefined) return { ok: false, reason: "application-manifest-missing", valuesRedacted: true }; const yaml = `${Bun.YAML.stringify(app).trim()}\n`; diff --git a/scripts/src/hwlab-node-web-sentinel-cicd.ts b/scripts/src/hwlab-node-web-sentinel-cicd.ts index fab7ed29..71027ee0 100644 --- a/scripts/src/hwlab-node-web-sentinel-cicd.ts +++ b/scripts/src/hwlab-node-web-sentinel-cicd.ts @@ -83,6 +83,7 @@ import { type WebProbeSentinelReportView, } from "./hwlab-node-web-sentinel-cicd-shared"; import { + applySentinelArgoApplication, controlPlaneWaitWarningSeconds, createK8sJobScript, probeK8sJobScript,