Merge pull request #1482 from pikasTech/fix/1476-sentinel-argo-helper
fix: export sentinel argo apply helper
This commit is contained in:
@@ -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");
|
const app = state.manifests.find((item) => item.kind === "Application");
|
||||||
if (app === undefined) return { ok: false, reason: "application-manifest-missing", valuesRedacted: true };
|
if (app === undefined) return { ok: false, reason: "application-manifest-missing", valuesRedacted: true };
|
||||||
const yaml = `${Bun.YAML.stringify(app).trim()}\n`;
|
const yaml = `${Bun.YAML.stringify(app).trim()}\n`;
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ import {
|
|||||||
type WebProbeSentinelReportView,
|
type WebProbeSentinelReportView,
|
||||||
} from "./hwlab-node-web-sentinel-cicd-shared";
|
} from "./hwlab-node-web-sentinel-cicd-shared";
|
||||||
import {
|
import {
|
||||||
|
applySentinelArgoApplication,
|
||||||
controlPlaneWaitWarningSeconds,
|
controlPlaneWaitWarningSeconds,
|
||||||
createK8sJobScript,
|
createK8sJobScript,
|
||||||
probeK8sJobScript,
|
probeK8sJobScript,
|
||||||
|
|||||||
Reference in New Issue
Block a user