From 387e2404474071f88c736282a6c9519c486f08db Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 3 Jul 2026 05:41:41 +0000 Subject: [PATCH] fix: export sentinel argo apply helper --- scripts/src/hwlab-node-web-sentinel-cicd-jobs.ts | 2 +- scripts/src/hwlab-node-web-sentinel-cicd.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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,