feat: deploy sub2api api2 on jd01

This commit is contained in:
Codex
2026-06-30 09:25:59 +00:00
parent b60cd70752
commit e0c70a2de7
5 changed files with 217 additions and 19 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ export async function apply(config: UniDeskConfig, options: ApplyOptions): Promi
: applyScript(sub2api, yaml, target, secretMaterial, publicExposureSecretMaterial, egressProxySecretMaterial),
);
const parsed = parseJsonOutput(result.stdout);
const pk01Exposure = target.publicExposure?.enabled === true ? await applyPk01PublicExposure(config, target) : null;
const pk01Exposure = target.publicExposure === null ? null : await applyPk01PublicExposure(config, target);
return {
ok: result.exitCode === 0 && boolField(parsed, "ok", false) && (pk01Exposure === null || pk01Exposure.ok === true),
action: "platform-infra-sub2api-apply",