fix: export sentinel argo apply helper

This commit is contained in:
Codex
2026-07-03 05:41:41 +00:00
parent fb48c624f4
commit 387e240447
2 changed files with 2 additions and 1 deletions
@@ -826,7 +826,7 @@ function sentinelGitopsFiles(state: SentinelCicdState): readonly { path: string;
}];
}
function applySentinelArgoApplication(state: SentinelCicdState, timeoutSeconds: number): Record<string, unknown> {
export function applySentinelArgoApplication(state: SentinelCicdState, timeoutSeconds: number): Record<string, unknown> {
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`;
@@ -83,6 +83,7 @@ import {
type WebProbeSentinelReportView,
} from "./hwlab-node-web-sentinel-cicd-shared";
import {
applySentinelArgoApplication,
controlPlaneWaitWarningSeconds,
createK8sJobScript,
probeK8sJobScript,