Merge pull request #1482 from pikasTech/fix/1476-sentinel-argo-helper

fix: export sentinel argo apply helper
This commit is contained in:
Lyon
2026-07-03 13:42:50 +08:00
committed by GitHub
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,